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 find the number of rows in a result set using PHP?
How many ways we can retrieve the date in result set of mysql using php?
Advertisements
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
Write a query to find the total number of rows in a table
How can we know the number of days between two given dates using PHP?
How can we know the count/number of elements of an array?
How can we solve this puzzle using java ?
Php Sql num rows
How can we encrypt the username and password using PHP?
How can we create a database using PHP and mysql?
find factorial of any number using recursion
How can we get second of the current time using date function?
How to add a columns with a button set to a Jtable built with database result set
how to chech result set is null or not - Java Beginners
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?
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
Rows Count Example Using JDBC ResultSet
PHP SQL Number of Rows
Php Sql num rows
What is the difference between PHP4 and PHP5?
Result=Set - Java Beginners
how to find largest number? - Java Interview Questions
How we can integrate ASP .net website to payment gateway using SOAP xml request and response using wsdl.
how to find square and cube of five number

Ads