วะว้าว แขกบ้านแขกเมือง สบายดีค่ะ ชื่อรัยคะ ถ้าใช้ภาษาไทยไม่ได้ก็ถามมาเป็นภาษาอังกฤษสิคะ
If u can't type any Thai ,try english please. And feel free to join with us.
<?
include "connect.php";
include "category.php";
for ($i=0;$i<count($cate);$i++) {
$sql="select id from tb_search where category='$i' ";
$result=mysql_db_query($dbname,$sql);
$num=mysql_num_rows($result);
echo "<LI>";
echo "<B><A HREF='list.php?cate_id=$i'>$cate[$i]</A></B> [$num]<BR>";
echo "$cate_detail[$i] <BR><BR>";
echo "</LI>";
}
?>
<?
include "connect.php";
include "category.php";
for ($i=0;$i<count($cate);$i++) {
$sql="select id from tb_search where category='$i' ";
$query=mysql_db_query($dbname,$sql);
$num=mysql_num_rows($result);
$result=mysql_fetch_array($query);
// $result for use.
echo "<LI>";
echo "<B><A HREF='list.php?cate_id=$i'>$cate[$i]</A></B> [$num]<BR>";
echo "$cate_detail[$i] <BR><BR>";
echo "</LI>";
}
?>