$postcount=mysql_query("SELECT * FROM forum_posts WHERE board_id=".$row['id']."");
echo "<tr>
<td><a href=viewtopics.php?bid=".$row["id"].">".$row["name"]."</a></td><td>";
count($postcount);
i think i caught it.
You can't count $postcount as it's just a result handler, not an array itself!
For doing that, you have to do:
$number_of_posts=mysql_num_rows ($postcount);
But, if you aren't going to extract any information of the forum_posts table but only the number of rows, you shoul do this instead. (better perfomance)
$postcount=mysql_query("SELECT COUNT(*) FROM forum_posts WHERE board_id=".$row['id']."");
$number_of_posts=mysql_result ($postcount,0);
hope it helps and hope you understand me now.