If forum_id != 48 AND forum_id != 49 AND ...
or any shorter notation that I don't know about.
Kees
Hello! I wrote a script to retrieve recent forum topics from my IPB forums. The script works, however, the problem is that even private forums are showing up. Even though people can't get to those threads, I would like for them not to show up. here is the script:
$q = "SELECT * FROM ibf_topics WHERE forum_id != 48||49||53||54||7||8||38||37||42||43||11||12 ORDER BY last_post DESC";
$r = mysql_query($q);
As you can see, I have tried excluding by forum ID and using the || operator. I have also tried to use OR instead of || and it didn't help. Can someone tell me what I'm doing wrong?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic