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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -