<?php
mysql_connect(“localhost”,”root”,”password”);
mysql_select_db(“store”);
$total=mysql_num_rows(mysql_query(“SELECT category_id as total FROM category”));
echo $total;
?>
mysql_connect(“localhost”,”root”,”password”);
mysql_select_db(“store”);
$total=mysql_num_rows(mysql_query(“SELECT category_id as total FROM category”));
echo $total;
?>