include"header.php";
import_request_variables("gpc"); ?>
function printChildCats($cat_id)
{
$query="select * from tblcategory where cat_parent_id =$cat_id and status=1 order by cat_order";
$rs=SQLQuery($query);
echo "";
$count=0;
while($row=mysql_fetch_array($rs))
{
$count++;
$cat_id=$row['cat_id'];
$cat_name=$row['cat_name'];
$cat_image=$row['image_name'];
$nTotal=getCount("tblproduct","tblcategory_ref=$cat_id and p_status=1");
echo "
($nTotal) |
";
if($count==2)
{
echo "
";
$count=0;
}
}
echo "
";
}
?>