Well im adding a script where it will lock topics in my forum (only for admins) i already got the lock to work its just making it so when making a topic or editing one to make it lock is where im having a problem..
i know this is easy lol but i must be over looking something.. before i post the where im having the problem at.. just one question in database i have lock as enum ('0', '1') now do i have to have a different way of changing that?? now here is the script
$sql="INSERT INTO forum_question(forumid, topic, detail, userid, lastpost, lock, datetime)VALUES('$forumid', '$topic', '$detail', '$userid', '$lastpost', '$lock', now())";
$result=mysql_query($sql);
now when i try adding a topic with this i get error. now if i take out lock, and '$lock', it adds the post :S
Please help me
Smackie