Hi there everyone,
I'm using the following code to get a topic count of a forum:
$query = mysql_query("SELECT topic_id FROM phpbb_topics WHERE forum_id=1");
$topic_count = mysql_num_rows($query);
echo $topic_count;
And would like to use it to get the topic count of three forums. I know I can just repeat this query a few times and change forum_id, $query and $topic_count, but was wondering if there's a cleaner method of getting the count for three?
thanks,
json