Hello,
How do you check if a field is in a given set? I thought it was like this:
but I guess I was wrong.Code:mysql_query("UPDATE Topics SET locked='yes' WHERE account='$account' AND topicid IN [".implode(",",$_POST['locked'])."]");
| SitePoint Sponsor |
Hello,
How do you check if a field is in a given set? I thought it was like this:
but I guess I was wrong.Code:mysql_query("UPDATE Topics SET locked='yes' WHERE account='$account' AND topicid IN [".implode(",",$_POST['locked'])."]");
Ballot-Box.net - free polls for webmasters
Ravelly.com - free message board
FormLog.com - free form processor


could you please echo the query so that we can see what mysql sees?

you need () not []
Check out our new Industry News forum!
Keep up-to-date with the latest SP news in the Community Crier
I edit the SitePoint Podcast
Bookmarks