Moin
Wenn ich das ausführe (ja, $_GET['id'] wird übergeben, habich schon getestet) bekomme ich immer folgende fehlermeldung:
You have an error in your SQL syntax near ',,,,,,,,,,,,,,,,,,,
)' at line 3
Warum???
PHP-Code:
$tal = array("4","-2","-7","3","4","-2","3","0","1","-2","2","2","3","-2","3","4","-5","2","2","-1","1");
$insert = mysql_query("INSERT INTO `u_taw` ( `uid` , `1` , `2` , `3` , `4` , `5` , `6` , `7` , `8` , `9` , `10` , `11` , `12` , `13` , `14` , `15` , `16` , `17` , `18` , `19` , `21` )
VALUES (
".$_GET['id'].",".$tal[0].",".$tal[1].",".$tal[2].",".$tal[3].",".$tal[4].",".$tal[5].",".$tal[6].",".$tal[7].",".$tal[8].",".$tal[9].",".$tal[10].",".$tal[11].",".$tal[12].",".$tal[13].",".$tal[14].",".$tal[15].",".$tal[16].",".$tal[17].",".$tal[18].",".$tal[19].",".$tal[20]."
);");
You have an error in your SQL syntax near ',,,,,,,,,,,,,,,,,,,
)' at line 3
Warum???
Kommentar