Salve a tutti.
Ho questa query:
codice:
$quer=mysql_query("INSERT INTO messaggi (mittente,destinatario,oggetto,messaggio,data,ora)
VALUES('$username','$destinatario','$oggetto','$messaggio,'$data','$ora')") or die ('Errore query 5: ' . mysql_error());
Ma continua a darmi questo messaggio:
codice:
Errore query 5: 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 '06-07-09','22:30')' at line 2
Quale errore ho fatto?