mysql - I am going crazy [syntax error] -


i can't believe having problem. i've been looking , looking can't see wrong. hate error message.

you have error in sql syntax; check manual corresponds mysql server version right syntax use near ' poster_ip, message, posted, thread_id posts ' @ line 1    mysql_query("insert poster, poster_ip, message, posted, thread_id                 posts                 values (     {$post_info['poster']},      '".mysql_real_escape_string($_server['remote_addr'])."',      '".mysql_real_escape_string($post_info['message'])."',      {$post_info['posted']},      {$post_info['thread_id']}") or die (mysql_error()); 

your sql syntax wrong.

you should using similar to:

insert posts (poster, poster_ip, message, posted, thread_id) values (...) 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -