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 are the differents between 'action' and 'target' in form tag?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
Where is session id stored?
Is php a mvc?
What the use of var_dump()?
Are parent constructors called implicitly inside a class constructor?
What backslash character will match whitespace?
How are cookies created?
Is not null mysql?
Which of the delimiter is ASP style?
Explain a resource?
Which is incorrect with respect to separating php code and html?