I have this query
mysql_query("INSERT into reviews VALUES(0,$pid,$id,'new')") or die(mysql_error());
It seems to give an 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 ''new')' at line 1"
Though it seems perfectly fine, the database table structure is:
`id` int(11) NOT NULL AUTO_INCREMENT,
`proposalid` int(11) NOT NULL,
`reviewerid` int(11) NOT NULL,
`status` enum('approved','declined','noresponse','new') NOT NULL DEFAULT 'new',
PRIMARY KEY (`id`);
There seems to be nothing wrong, but why the error?