Bah, should have read to the bottom before I looked for the problem. Glad you found it.
You know, you don't need to concat and backtick
PHP queries (at least in
PHP 5 and later mysql 4, you might have to test it on your config):
- PHP: Select all
$query = "INSERT INTO `comments` ( `ID` , `eventID` , `name` , `comment` ) " . "VALUES (NULL , '".$eventid."', '".$postname."', '".$postmsg."')";
SQL will read the variable values even if they are in single quotes
- PHP: Select all
$query = "INSERT INTO comments ( ID,eventID,name,
comment) VALUES (NULL,'$eventid','$postname','$postmsg')";
Also, when you're posting code on the forum, it's a gazillion times easier to read if you use the Enter key to break up long lines and eliminate that horizontal scrollbar.