Ciao a tutti...
Eseguendo questa query in php
Codice PHP:
$query = "'INSERT INTO `st` (`data`, `datam`, `cod_cliente`, `cliente`, `cod_articolo`, `articolo`, `cod_lavorazione`, `disposizione`, `note`) VALUES ( '$data' , 'datam' , '$cod_cliente' , '$cliente' , '$cod_articolo' , '$articolo' , '$cod_lavorazione' , '$disposizione' , '$note'
);";
mysql_query($query, $cn) or die (mysql_error());
mysql_close();
Mi genera questo errore:
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 ''INSERT INTO `st` (`data`, `datam`, `cod_cliente`, `cliente`, `cod_articolo`, `a' at line 1
Perchè ????