stryka
11-19-2003, 03:46 PM
I have a "LATEST THREADS" section on my homepage... and
I am trying to exclude a forum within the SQL and it isn't working... threads are still showing up on my homepage.. i want to exclude threads in FORUMID 24?? WHat am i doing wrong? I've tried 24 with and without quotes...
$threads=$DB_site->query("SELECT * FROM thread WHEREforumid!=24 AND open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxthreads");
I am trying to exclude a forum within the SQL and it isn't working... threads are still showing up on my homepage.. i want to exclude threads in FORUMID 24?? WHat am i doing wrong? I've tried 24 with and without quotes...
$threads=$DB_site->query("SELECT * FROM thread WHEREforumid!=24 AND open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxthreads");