|
错误#1062: Duplicate entry '' for key 'MODULE_CODE'
SQL语句: insert into ATTACHMENT_MODULE (MODULE_ID, MODULE_NAME, MODULE_CODE) values ('202', '', '');
文件:D:/MYOA/webroot/plugin/staffvisited/add.php
后代码:
//--------- 上传附件 ----------
if(count($_FILES)>1)
{
$ATTACHMENTS=upload();
$ATTACHMENT_ID=$ATTACHMENTS["ID"];
$ATTACHMENT_NAME=$ATTACHMENTS["NAME"];
}
$ATTACHMENT_ID.=copy_sel_attach($ATTACH_NAME,$ATTACH_DIR,$DISK_ID);
$ATTACHMENT_NAME.=$ATTACH_NAME;
前
<tr height="25" id="attachment1">
<td nowrap class="TableData" ><span id="ATTACH_LABEL"><?=_("附件上传:")?></span></td>
<td class="TableData"colspan=5>
<script>ShowAddFile();</script>
<input type="hidden" name="ATTACHMENT_ID_OLD" value="<?=$ATTACHMENT_ID?>">
<input type="hidden" name="ATTACHMENT_NAME_OLD" value="<?=$ATTACHMENT_NAME?>">
</td>
</tr>
|
|