How can we find the number of rows in a result set using
PHP?
Answers were Sorted based on User's Feedback
Answer / sreenia
a small correction to above answer, mysql_num_rows($rs)
Is This Answer Correct ? | 30 Yes | 0 No |
Answer / shivu
$no_of_rows=mysql_num_rows($result_set_name);
echo $no_of_rows;
Is This Answer Correct ? | 13 Yes | 2 No |
Answer / rakesh kumar nautiyal
mysql_num_row() can return the number of rows in php
Is This Answer Correct ? | 10 Yes | 8 No |
Answer / ditty k.m
mysql_num_rows(resultset);
this function will return the number rows after executing
a query.
Is This Answer Correct ? | 2 Yes | 2 No |
What is the use of final class in php?
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
What is difference between base_url and site_url?
Explain me what is the w3c?
Which function is used to read a single character from a file in PHP.
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
What are variables in research examples?
How to stop the execution of php script?
Why sessions are used in php?
Tell us how can we display the output directly to the browser?
What is get method in java?
What is $_ get?