here is what makes table (its part script and all the html)
$display_block = "
[B]<table class="boxes">[/B]
<tr>
<th>TOPIC</th>
<th>POSTS</th>
</tr>";
while ($topic_info = mysql_fetch_array($get_topics_res)) {
$topic_id = $topic_info['topic_id'];
$topic_title = stripslashes($topic_info['topic_title']);
$topic_create_time = $topic_info['fmt_topic_create_time'];
$topic_owner = stripslashes($topic_info['topic_owner']);
//get number of posts
$get_num_posts = "select count(post_id) from forum_posts where topic_id = $topic_id";
$get_num_posts_res = mysql_query($get_num_posts,$conn) or die(mysql_error());
$num_posts = mysql_result($get_num_posts_res,0,'count(post_id)');
//add to display
$display_block .= "<tr><td><a href=\"showtopic.php?topic_id=$topic_id\"><strong>$topic_title</strong></a>
<br>Created on $topic_create_time by $topic_owner</td>
<td align=center>$num_posts</td>
</tr>";
}
//close up the table
$display_block .= "</table>";
}
?>
<html>
<head>
<title>Topics in My Forum</title>
<link href="/formstyle.css" rel="stylesheet" type="text/css">
</head>
<body class="boxes">
<h1>Topics in My Forum</h1>
<?php echo $display_block; ?>
<P>Would you like to <a href="addtopic.html" class="link">add a topic</a>?</p>
</body>
</html>