![]() |
how do I alter the below code to have it count the posts in forumid 1 and 5? thanks in advance
$grabthreadids=$DB_site->query("SELECT threadid FROM post WHERE post.userid='$post[userid]' AND post.visible=1"); $post[thisforumonly] = "0"; while ($getcount=$DB_site->fetch_array($grabthreadids)) { $checkforumid=$DB_site->query_first("SELECT forumid FROM thread WHERE threadid=$getcount[threadid] AND thread.visible=1"); if ($checkforumid[forumid] == $forum[0]) { $post[thisforumonly]++; } } |
All times are GMT. The time now is 05:38 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|