Grazie per la risposta!
Dunque, in effetti il ; non serve a nulla. Ecco i due errori con e senza:
Erreur SQL > INSERT INTO tstat (idstat, datecommande, champtype, description, prix) VALUES( '', 2013-02-25', 'betd, 'Coca Cola - ', '2,50)
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 '', 'betd, 'Coca Cola - ', '2,50)' at line 1
Erreur SQL > INSERT INTO tstat (idstat, datecommande, champtype, description, prix) VALUES( '', 2013-02-25', 'betd, 'Coca Cola - ', '2,50);
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 '', 'betd, 'Coca Cola - ', '2,50)' at line 1
Il prezzo nelle pagine precedenti è trattato con il . I calcoli infatti li esegue senza problemi.
Poi cambia in virgola, pensi possa essere qui l'errore?
Il primo dato è l'id e non si vede, pensi sia normale? O dovrebbe apparire?
Ecco cosa succede con il var_dump:
int(0) array(1) { [0]=> string(4) "betd" } Erreur SQL > INSERT INTO tstat (idstat, datecommande, champtype, description, prix) VALUES();
Column count doesn't match value count at row 1