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 |
How to calculate the length of a string?
Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is $_session in php?
Differentiate echo vs. Print statement.
What is the difference between InnoDb tables and MyIsam Tables in php
Describe the importance of DABA BASE ABSTRACTION LAYERS in PHP and database connection?
Explain me what is the goto statement useful for?
What does the unlink() function means?
which is the best institute for php training near delhi & NCR......& what is the fee for the same....
How to write php function in html onclick?
how prepare the testing documentation.
What is button in html?