<?php
include "connect.php";
include "category.php";
for ($i=0;$i<count($cate);$i++) {
$sql="select id from tb_url where category='$i' ";
$result=mysql_db_query($dbname,$sql);
$num=mysql_num_rows($result);
echo "<LI>";
echo "<B><FONT SIZE=2><A HREF='list.php?cate_id=$i'>$cate[$i]</A></B> [$num]<BR>";
echo "</LI>";
}
?>