Code: Alles auswählen
WHERE f.forum_id != 12,13,14,15,16
Code: Alles auswählen
WHERE f.forum_id NOT IN (12,13,14,15,16)
Amen!
Gruß
Jens
Code: Alles auswählen
WHERE f.forum_id != 12,13,14,15,16
Code: Alles auswählen
WHERE f.forum_id NOT IN (12,13,14,15,16)
Code: Alles auswählen
case 'oracle':
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u
WHERE p.post_id = f.forum_last_post_id(+)
AND u.user_id = p.poster_id(+)
ORDER BY f.cat_id, f.forum_order";
break;
default:
if (($userdata['user_level'] == ADMIN) OR ($userdata['user_level'] == MOD))
{
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_title, t.topic_last_post_id " .
" FROM ((( " . FORUMS_TABLE . " f " .
" LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )" .
" LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id ) " .
" LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_last_post_id = p.post_id ) " .
ORDER BY f.cat_id, f.forum_order";
break;
}
else
{
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_title, t.topic_last_post_id " .
" FROM ((( " . FORUMS_TABLE . " f " .
" LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )" .
" LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id ) " .
" LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_last_post_id = p.post_id ) " .
" WHERE f.forum_id != 10 "
ORDER BY f.cat_id, f.forum_order";
break;
}
}