ID: 10728
Updated by: derick
Old-Status: Open
Status: Bogus
Bug Type: HTTP related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 

I think you have an error in your scripting logic.
You probably get a warning about a duplicate Key, and that is most probably caused by 
that $id field of yours. Make sure you are not adding more record which have the same 
primary key.

Previous Comments:

[2001-05-08 07:17:50] [EMAIL PROTECTED]
i have multiple upload (3) form and
when i try something like this :

for ( $i=0; $i<=2; $i++ ) {
 $temporary = "image".$i;
 $file_name = $HTTP_POST_FILES["$temporary"]['name'];
 $file_type = $HTTP_POST_FILES["$temporary"]['type'];
 $file_size = $HTTP_POST_FILES["$temporary"]['size'];
 $temp_name = $HTTP_POST_FILES["$temporary"]['tmp_name'];
 copy($temp_name, "/var/$dir_name/$file_name");
 $url = $rel_image_url . "/$file_name";
 $query_i = "INSERT INTO images VALUES 

it puts only the first file in the database and gives an error - Duplicate 
it works only without the for cycle - with three times handling the uploads.
i'm not sure it's bug (maybe misunderstanding :).
p.s. when i do - INSERT IGNORE INTO ... it puts the first file but doesn't shows the 


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to