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

Answers were Sorted based on User's Feedback



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

Answer / sreenia

a small correction to above answer, mysql_num_rows($rs)

Is This Answer Correct ?    30 Yes 0 No

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

Answer / shivu

$no_of_rows=mysql_num_rows($result_set_name);
echo $no_of_rows;

Is This Answer Correct ?    13 Yes 2 No

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

Answer / rakesh kumar nautiyal

mysql_num_row() can return the number of rows in php

Is This Answer Correct ?    10 Yes 8 No

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

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

Post New Answer

More PHP Interview Questions

What is the use of final class in php?

0 Answers  


What is the maximum size of a file that can be uploaded using PHP and how can we change this?

4 Answers  


What is difference between base_url and site_url?

0 Answers  


Explain me what is the w3c?

0 Answers  


Which function is used to read a single character from a file in PHP.

0 Answers  






What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?

0 Answers  


What are variables in research examples?

0 Answers  


How to stop the execution of php script?

0 Answers  


Why sessions are used in php?

0 Answers  


Tell us how can we display the output directly to the browser?

0 Answers  


What is get method in java?

0 Answers  


What is $_ get?

0 Answers  


Categories