PHP MYSQL Total Number Of Rows
PHP MYSQL Total Number Of Rows
This script will help you calculate the total number of rows in your MYSQL table using php.
< ?php $link = mysql_connect("localhost", "root", ""); mysql_select_db("mails", $link); $result = mysql_query("SELECT * FROM mail", $link); $a = mysql_num_rows($result); echo "$a Rows\n"; ?>
We are using mysql_num_rows() function and assign the value to variable $a.
PHP MYSQL Total Number Of Rows ,