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

How to calculate the length of a string?

0 Answers  


Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?

0 Answers  


What is $_session in php?

0 Answers  


Differentiate echo vs. Print statement.

0 Answers  


What is the difference between InnoDb tables and MyIsam Tables in php

1 Answers  






Describe the importance of DABA BASE ABSTRACTION LAYERS in PHP and database connection?

1 Answers  


Explain me what is the goto statement useful for?

0 Answers  


What does the unlink() function means?

0 Answers  


which is the best institute for php training near delhi & NCR......& what is the fee for the same....

2 Answers  


How to write php function in html onclick?

0 Answers  


how prepare the testing documentation.

0 Answers   Accenture,


What is button in html?

0 Answers  


Categories