PHP chat SQLSTATE[HY000]: General error: 2053
I am currently trying to install this Facebook style PHP chat/shoutbox with jquery onto my website shared here: http://www.adam-bray.com/blog/109/facebook-style-php-chat-shoutbox-jquery/
if the site doesnt work here is a cache version: http://webcache.googleusercontent.com/search?q=cache:pYWQsmamNRQJ:www.adam-bray.com/blog/109/facebook-style-php-chat-shoutbox-jquery/+&cd=1&hl=fi&ct=clnk&gl=fi
so i keep getting the same error: SQLSTATE[HY000]: General error: 2053 every time when i post a message. I am not a good coder and i would like to find the part that makes this error and fix it.
error_log shows this:
[27-Jan-2017 07:12:38 America/New_York] PHP Notice: Undefined index: anti_spam in /home/myuser/public_html/privatestream/includes/session.php on line 23
in session.php on line 23: return $_SESSION[$name];
but i doubt it has something to do with it? I googled and might be something to do with PDO / database?