Multiple Upload : Mime Headers Garbled

From: Date: Tue, 07 Nov 2000 14:51:04 +0000
Subject: Multiple Upload : Mime Headers Garbled
Groups: php.general 
Request: Send a blank email to php-general+get-24100@lists.php.net to get a copy of this message
Hi everyone, I've got a litle problem and it seems I can't find the solutions, nevertheless i have a clue what's going on ... When I try to upload a file to put it in my MY-SQL dbase there seems te bo no problem (GREATTZ) BUT when I do the same for a mutliple Fileupload i get the error-message : Warning: File Upload Mime headers garbled ptr: [ in Unknown on line 0 Anyone any idea what I have to change ... TNX CU Brutje Here is the part of the script that's gives the troubles : { mysql_query ("INSERT INTO $tablename[2] ($tables2[1], $tables2[2], $tables2[3], $tables2[4], $tables2[5], $tables2[6], $tables2[7], $tables2[8], $tables2[9], $tables2[10], $tables2[11], $tables2[12], $tables2[13], $tables2[14], $tables2[15], $tables2[16], $tables2[17], $tables2[18], $tables2[19], $tables2[20], $tables2[21], $tables2[22], $tables2[23], $tables2[24]) VALUES ('$id', '$spelnaam', '$CPU1', '$Clock1', '$MMX1', '$DX1', '$DrieD1', '$CD1', '$MEM1', '$OS11', '$OS12', '$OS13', '$OS14', '$OS15', '$Free1', '$CPU2', '$Clock2', '$MMX2', '$DX2', '$DrieD2', '$CD2', '$MEM2', '$LAN', '$WAN')") or error_mysql(); mysql_query ("INSERT INTO $tablename[5] ($tables5[1], $tables5[2], $tables5[3], $tables5[4], $tables5[5], $tables5[6]) VALUES ('$id', '$spelnaam', '$spelleef1', '$spelleef2', '$spelleef3', '$spelleef4')") or error_mysql(); print ("<form action=\"nieuw1.php\" method=\"POST\" enctype=\"multipart/form-data\">"); print ("<div align=\"center\">"); print ("<table width=\"90%\" cellspacing=\"0\">"); print ("<TR align=\"center\" valign=\"middle\" bgcolor=\"#7CC624\"><TD width=\"36\" background=\"images/lb-tabel.jpg\"></TD><TD>test</TD><TD width=\"36\" background=\"images/rb-tabel.jpg\"></TD></TR>"); print ("</table>"); print ("<table width=\"90%\" cellspacing=\"0\">"); for ($i=0;$i<=14;$i++) { print ("<TR align=\"center\" valign=\"middle\" bgcolor=\"#7CC624\"><TD>Box-img</TD><TD align=\"center\" bgcolor=\"#048EE4\"><input type=\"file\" name=\"source[$i]\"></TD></TR>"); } print ("</table>"); print ("<input type=\"hidden\" name=\"action\" value=\"upload\">"); print ("<input type=\"hidden\" name=\"id\" value=\"$id\">"); print ("<input type=\"hidden\" name=\"spelnaam\" value=\"$spelnaam\">"); print ("<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"30000\">"); print ("<table width=\"90%\" cellspacing=\"0\">"); print ("<TR align=\"center\" valign=\"middle\" bgcolor=\"#7CC624\"><TD width=\"36\" background=\"images/lo-tabel.jpg\"></TD><TD><input type=\"image\" src=\"images/volgende.jpg\"></TD><TD width=\"36\" background=\"images/ro-tabel.jpg\"></TD></TR>"); print ("</table>"); print ("</form>"); print ("</div>"); } else if ($action=="upload") { for ($i=0;$i<=14;$i++) { if (isset($source[$i]) && $source[$i]!="none") { $data[$i]=addslashes(fread(fopen($source[$i], "r"), filesize($source[$i]))); unlink($source[$i]); } print ("$data[$i]"); } mysql_query("INSERT INTO $tablename[3] ($tables3[1], $tables3[2], $tables3[3], $tables3[4], $tables3[5], $tables3[6], $tables3[7], $tables3[8], $tables3[9], $tables3[10], $tables3[11], $tables3[12], $tables3[13], $tables3[14], $tables3[15], $tables3[16],$tables3[17]) VALUES ('$id', '$spelnaam', '$data[1]', '$data[2]', '$data[3]', '$data[4]', '$data[5]', '$data[6]', '$data[7]', '$data[8]', '$data[9]', '$data[10]', '$data[11]', '$data[12]', '$data[13]', '$data[14]', '$data[15]')") or error_mysql();

« previous php.general (#24100) next »