I have the following insert query...
Code: Select all
$query = mysql_query("INSERT INTO mail (date, to, from, subject, message)
VALUES('now()', '$to', '$from', '$subject', '$message')")
or die (mysql_error());I get the error.....
You have an error in your SQL syntax near 'to, from, subject, message) VALUES('now()', '13', '8', 'Hello', 'How a' at line 1
I do not know why this is. Any thoughts?