'; echo $category_title; echo '
'; echo $category_description; echo ''; // selects our forums if the "cid" is the same as our $category_id. $result2 = mysql_query("select * from forums where cid = '$category_id'"); } // the while loop to echo out our corresponding forums while($r2 = mysql_fetch_array($result2)) { // redefine our forum row variables. $forum_id = $r2['id']; $forum_title = $r2['title']; $forum_description = $r2['description']; $forum_last_post_title = $r2['last_post_title']; $forum_last_post_username = $r2['last_post_username']; $forum_topics = $r2['topics']; $forum_replies = $r2['replies']; echo ' '; echo '' . $forum_title . '>
'; echo $forum_description; echo ''; echo $forum_last_post_title; echo '
'; echo $forum_last_post_username; echo ''; echo $forum_topics; echo ''; echo $forum_replies; echo ''; } //end while loop ?>