This tutorial illustrates how to find number of rows of the table.
In this example, we have created a num_rows.php file in which we executed a query to find the number of rows in the table. We created a connection from database table using mysql_connect("hostName", "userName", "Password"). After the connection created we choose database by mysql_select_db("databaseName", connectionObject) and executed the query by mysql_query("SELECT * FROM tableName"). The number of rows are returned by the mysql_num_rows() method.
Source Code of num_rows.php
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: January 20, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles