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 does $_ post mean in php?
How do you identify independent and dependent variables in regression analysis?
What is a persistent cookie in php?
Is php faster than nodejs?
What is the difference between "echo" and "print" in php?
Who is the father of php and what is the current version of php and mysql?
Can i get free good material for preparation for Zend Certification can i get good questions about certification?
What is the difference between null and empty?
Is php an array?
Will react hooks replace redux?
How can we destroy the cookie in php?
What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?