What would I need to add so that I can return a count of the number of rows retrieved in the query? I am not sure where to include the COUNT (another query?) and then what syntax to use to print the result. thanks
$data = mysql_query('SELECT * FROM `bus_basic` ORDER BY `name` ASC ')
or die(mysql_error());
Print "<table cellpadding=3>";
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
Print "".$info['name'] . " ";
Print "<br> ".$info['address'] . " ";
Print "<br> ".$info['city'] . ", ";
Print "".$info['state'] . " ";
Print "".$info['zip'] . " ";
Print "<br> ".$info['phone'] . " ";
Print "<br><b>Main Category:</b> ".$info['cat1'] . " ";
Print "<br> <b>Sub Category:</b> ".$info['subcat1'] . " ";
Print "<br> <b>Sub Category:</b> ".$info['subcat2'] . " <br><hr> </td></tr>";
}
Print "</table>";