I don't even know where to begin....
Warning: mysql_query() [http://www.mysql.com/doc]: 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 ''shouts' SET 'userid' = 2, 'date' = NOW(), 'message' = 'hjkl'' at line 1 in /var/www/shoutbox.php on line 50
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 ''shouts' SET 'userid' = 2, 'date' = NOW(), 'message' = 'hjkl'' at line 1
php code
<?php
else
{
mysql_query("INSERT INTO 'shouts' SET
'userid' = {$_SESSION['uid']},
'date' = NOW(),
'message' = '$shout' ") or die(mysql_error());
}
?>