Code: Select all
$sql="INSERT INTO forum_question(forumid, topic, detail, userid, lock, datetime)VALUES('$forumid', '$topic', '$detail', '$userid', '$lock', now())";
$result=mysql_query($sql);i getor die(mysql_error());
can someone tell me whats wrong here :SYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lock, datetime)VALUES('1', 'test', 'test', '14', '1', now())' at line 1
Thank you
Smackie