Hello there, I've been having problems creating a part of my mail system that makes messages look red when they haven't been read, and white when they have been read.
This is what I'm using right now
mysql_query("UPDATE Mail SET Read=1 WHERE ID={$messageID}");
The SQL ID Field is a smallint and the PHP variable $messageID is an int too.
The error it's displaying 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=1 WHERE ID=20' at line 1
Please help me find what's wrong in my code!