Get total number of records in mysql table with PHP

Free Scripts :: PHP :: PHP and Mysql :: Get total number of records in mysql table with PHP

Author: Salman Javaid

Website: http://www.salman.be

  1. How to get total number of records in mysql table.
  2. Count total number of mysql table records.
  3. Show total records in mysql table.
  4. Calculate total records of mysql table.

This script displays the total number of records from a mysql table.

Script:

$sql = mysql_query("select * from products");
echo mysql_num_row($sql);

Output

55

Comments

No comments. Be the first one.

Leave a comment

Full Name*
Comments*
Security Code*

Our Partners

Getty Icons  Salman Creations
Free High Quality Images  Learn Free Languages 
Opal Hosting  R-Tech Solutions
  • Submit a Script

    Click here to submit your script.