Ciao a tutti, ho un problema con una query e non riesco a venirne fuori.
La query che ho scritto e' la seguente:
Stampandola ottengo il seguente risultatocodice:$query2="INSERT INTO items (cod_d,category,brand,model,condition,cleansing) VALUES ('$cod_d','$category','$brand','$model','$condition','$data_cleansing')";
Quindi i dati vengono presi correttamente dal form, ma non vengono inseriti nella tabella items.codice:INSERT INTO items (cod_d,category,brand,model,condition,cleansing) VALUES ('4','cables_mouse_keyboards','j','dsf','new','gold')
Ho provato ad eseguire la query direttamente da phpmyadmin e mi ritorna questo errore:
Cercando nel web pero' non ho trovato nulla di utile per correggere la mia query, avete idee?codice:#1064 - 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 'condition,cleansing) VALUES ('4','cables_mouse_keyboards','j','dsf','new','gold'' at line 1![]()

Rispondi quotando