ciao a tutti,
ricevo un errore di sintassi
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
questa è la mia query
codice:
"INSERT INTO preventivi('$id_utente','$id_cliente','NON CREATO','APERTO')";
e questa è la mia tabella
codice:
CREATE TABLE `preventivi` (
`id` int(11) NOT NULL auto_increment,
`id_utente` int(11) NOT NULL default '0',
`id_cliente` int(11) NOT NULL default '0',
`file` varchar(255) NOT NULL default '',
`stato` varchar(50) NOT NULL default '',
`data` timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
)
non riesco capire perchè ho l'errore :master: