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

Which operator is used to combine string values in php?

0 Answers  


Explain about switch statement in PHP?

0 Answers  


What is use of mysqli_query in php?

0 Answers  


Where are php configuration settings stored?

0 Answers  


What does it mean when it says the csrf token is invalid?

0 Answers  






What is isset function in php?

0 Answers  


What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?

0 Answers  


Why would we use === instead of ==?

0 Answers  


Tell me what are the encryption techniques in php?

0 Answers  


Explain me is it possible to destroy a cookie?

0 Answers  


What is php stack?

0 Answers  


Write a php function to convert all null values to blank?

0 Answers  


Categories