Code: Select all
$to = "1";
$subject = "Report Post";
$result = mysql_query("INSERT INTO pm_box (to, from, subject, message, date) VALUES('$to', '$user_input', '$subject', '$message', '$date')")
or die(mysql_error());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 'to, from, subject, message, date) VALUES('1', 'Jr', 'Report Pos
I just can't figure out what's wrong with this thing. Could it be something incorrect with the database? The CPanel MyAdmin thing let me set up the DB just fine so I really dont get it.
Jcart | Please review how to post code here