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?

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









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
find factorial of any number using recursion
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
Php Sql num rows
What is the difference between PHP4 and PHP5?
ModuleNotFoundError: No module named 'phpy'
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?
Result=Set - Java Beginners
Find Records of The Rows Using POI
How can we encrypt the username and password using PHP?
How can we create a database using PHP and mysql?
How can we get second of the current time using date function?
Rows Count Example Using JDBC ResultSet
how to find largest number? - Java Interview Questions
Getting Number of Rows
how to find square and cube of five number
Program to Find Cube Root of any Number without using built in function
Sort Result set
JDBC: Rows Count Example
how can i display a editable result of form?
Count Rows from a Database Table
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
Java get number of rows in resultset
How we can integrate ASP .net website to payment gateway using SOAP xml request and response using wsdl.
Getting the Number of Rows and Columns in JTable
How to set Messages number to be read in pop3 mail server
How to set Messages number to be read in pop3 mail server
How do I find out the number of parameters passed into function9. ?
How to sort the rows in SQL?
Hibernate Narrowing Criteria Result Set
Find out the prime number
how to Insert Array Values Into Separate Rows using java?
How can we extract string 'roseindia.net ' from a string http://[email protected] net using regular expression of php?
How can we get the properties (size, type, width, height) of an image using php image functions?
Php Sql Number of Rows

Ads