這裏是我的輸入字段..副本()函數錯誤
<input type="file" name="upload_file[]" value="" id=" "/>
$attach = $_FILES["upload_file[]"]["name"];
$sql = "insert into uploadfile(CAT_ID, SUB_CAT_ID, TAG, DESCRIPTION, UF_NAME, UF_NAME1 , GENRE) values('".$category."','".$subcategory."','".$tag."','".$optionaldescription."','".$attach."','".$attach."','".$genre."')";
copy($_FILES['upload_file[]']['tmp_name'], "upload/".$_FILES['upload_file']['name']);
mysql_query($sql);
Warning: copy() [function.copy]: Filename cannot be empty in C:\xampp\htdocs\test\index.php on line 48
...的Java?這是怎麼回事? –
@John:得到一些睡眠 - 它有助於在這種情況下:-) –
是否需要包括格式錯誤的SQL(可能無法正確轉義)? – ajreal