non capisco se in phpmyadmin eseguo questa query
se eseguo la query da php mi dà errorecodice:INSERT INTO preventivi (id,id_utente,id_cliente,file,stato)VALUES (NULL,'$id_utente','$id_cliente','NON CREATO','APERTO')
e mi risponde cosicodice:if(isset($id_utente) && isset($id_cliente)) { $nuovo = "INSERT INTO preventivi (id,id_utente,id_cliente,file,stato)VALUES(NULL,'$id_utente','$id_cliente','NON CREATO','APERTO')"; $ris_nuovo = mysql_query($nuovo, $conn) or die(mysql_error()); echo $prosegui = "OK"; }else{ echo $prosegui = "NO"; }
:master:codice: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 '1, 28,'NON CREATO','APERTO')' at line 1

Rispondi quotando