//Topic
$select=mysql_query("select * FROM tb_topic") or die (mysql_erorr());
echo $numRows=mysql_num_rows($select);
//Reply
$Topic=1;
$select=mysql_query("select * FROM tb_reply WHERE Topic='".$Topic."'") or die (mysql_erorr());
echo $numRows=mysql_num_rows($select);