Forum lock help
Posted: Tue Aug 07, 2007 12:29 pm
I do not know whats going on i mean i been on this script for the whole day yesturday.. I believe its somewhere in the insert part :S but here is the part of the script i believe its in
I just get ERROR on that but when i take out lock, and '$lock', it works fine lock is in the database between userid and datetime and i have at the top $lock = $_POST['lock']; but if i put
Thank you
Smackie
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