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

Ads
 

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

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

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

Ads









Related Tutorials/Questions & Answers:
How can we solve this puzzle using java ?
Php Sql num rows
Advertisements
find factorial of any number using recursion
Rows Count Example Using JDBC ResultSet
How to add a columns with a button set to a Jtable built with database result set
Php Sql num rows
PHP SQL Number of Rows
how to store the REsult Set values in array and loop through it in java?
how to store the REsult Set values in array and loop through it in java?
how can i display a editable result of form?
How we can integrate ASP .net website to payment gateway using SOAP xml request and response using wsdl.
JDBC: Rows Count Example
Program to Find Cube Root of any Number without using built in function
struts2 how can we add an radio button to form using a class(doa)
struts2 how can we add an radio button to form using a class(doa)
How to set Messages number to be read in pop3 mail server
how can i set an object in focus
How to set Messages number to be read in pop3 mail server
Sort Result set
how to Insert Array Values Into Separate Rows using java?
Hibernate Narrowing Criteria Result Set
Php Sql Number of Rows
how can we store the encrypted passwaord in swings?
ModuleNotFoundError: No module named 'phpy'
How can I find my DHCP IP address on my computer?
How can we save a data list in jsf?
How to store unique values in Java using Set?
How to store unique values in Java using Set?
how we can create website through java
How can we get hibernate statistics?
how to set values in object using java and what are the ways?

Ads