Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP How can we find the number of rows in a result set using PHP?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


brijesh
How can we find the number of rows in a result set using PHP?
1 Answer(s)      4 years and 2 months ago
Posted in : PHP


How can we find the number of rows in a result set using PHP?


Advertisement
View Answers

November 15, 2010 at 6:18 PM


Hi everyone,

If you want to find out the number of rows in the result set then use mysqlnumrows($resultsetname) function.

Syntax :

$no_of_rows=mysql_num_rows($result_set_name);
echo $no_of_rows;

Thanks



Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com