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

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
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.