I am getting an error for this code
$q1 = "INSERT INTO messages (sender,reciever,subject,message,read) VALUES ('$username','$reciever','$subject','$message','$one')";
mysql_query($q1) or die (mysql_error());
The error I get is
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 'read) VALUES ('Fareon','Fareon','test','test','1')' at line 1
now the code worked like this
$q1 = "INSERT INTO messages (sender,reciever,subject,message) VALUES ('$username','$reciever','$subject','$message')";
mysql_query($q1) or die (mysql_error());
and yes there is a column called read