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 is the basic syntax of Php?
To find out the current year is leap year or not which date() function we've to use.Give the syntax also
What is the difference between Split and Explode in PHP?
What is a stored procedure in mysql?
What is strcmp?
Is rent a variable cost?
Why do you need to filter out empty files?
can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com
What is .htaccessfile and use of this file
I have written a source code in php but I do not know how to compile that and conduct it with a website please explain me the how to compile that ?
hi here one small project given to me in an software company during interview. one page that would count down till 9pm (today means every day before 9pm it would count down to zero) this means there will show how many mins. sec. and hours are left till 9pm so it would be like 1 hr 20 mins 23 sec. then it up count down every sec and then show 1hr 20mins 22sec left till 9pm once the count down reaches zero it would show a flesh player video will autostart. the flash player will be from http://www.longtailvideo.com/players/jw-flv-player/ (the player is embed into the page.) that same page will track to see if they have already seen the video using php sessions then if they go back to that page it would redirect them to a new page saying that they have already wathed the video.
What are php loops?