I'm just a beginner and can not seem to get this information to post to the database I have setup. I am trying create a private messaging script but I run into this problem. Here is the code: [quote]conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $db = mysql_select_db($dbname) or die(mysql_error()); $query =("INSERT INTO email (to , subject , message) values('$to', '$subject', '$message')"); mysql_query($query,$conn) or die(mysql_error()) [/quote] Here is the error message: [quote]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 , subject , message) values('jake', 'test', 'test')' at line 1 [/quote] I was hoping someone here could shed some light on this. I have a different script that uses the exact same code and works fine. I'm not sure what's going on.