about calculator the total records in database with php?

A

Anonymous

Guest
I think you should use the function mysql_num_rows to get the number of records.
For example you could do it that way:
Code:
<?php
$query = mysql_query("SELECT * FROM product");
$number_of_records = mysql_num_rows($query);
?>
 
Back
Top