ok dont get wuts wrong with it>_<
heres my php mysql query
PHP Code:
$DB_site->query("INSERT INTO ".TABLE_PREFIX."thread (title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline,
iconid, visible, attach, similar) VALUES ('".addslashes($info['entry_name'])."','".$lastcomment['comment_date']."','".intval($info['forumid']).",'1','".$numcomments['totalcomments']."','".addslashes($info['artistname'])."','".$info['artistid']."','".addslashes($lastcomment['commenter'])."','".$info['entry_date']."','0','1','0','".addslashes($similarthreads)."')");
heres the syntax error:
Quote:
Originally Posted by mysql
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 '1','1','','','Antonbomb22','0','0','1','0','')'
|