Ciao a tutti,
sto sbattendo la testa su un pezzo di codice da un paio di giorni: non riesco a capire che diavolo di errore possa avere.
Il codice è il seguente :
Codice PHP:
$insert = mysql_query("INSERT INTO stats (user_id,for,des,pot_mag,def_mag,vit,luk,acc) VALUES ('$_POST[id_ut]','$for','$des','$pot_mag','$def_mag','$vit','$luk','$acc')") or die (mysql_error());
e l'errore mostrato è
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'for,des,pot_mag,def_mag,vit,luk,acc) VALUES ('6','10','10','10','10','10','5','0' at line 1
Non riesco a trovarlo...qualche suggerimento?