How can we find the number of rows in a result set using PHP?
Answer Posted / rajan vardawaj
Here is how can you find the number of rows in a result set
in PHP: $result = mysql_query($any_valid_sql,
$database_link); $num_rows = mysql_num_rows($result); echo
“$num_rows rows found”;
Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What is config file in php?
What are examples of independent and dependent variables?
What is difference between session and cookies in php?
What is the difference between laravel and php?
Are objects passed by value or by reference?
How to block direct directory access in PHP?
What is the name of the scripting engine that powers PHP?
How is it possible to set an infinite execution time for php script?
Why should I store logs in a database rather than a file?
What is the default session time in php?
How error handling is being handled by php?
Is age interval or ordinal?
Explain what does the unset() function means?
What is the use of mvc in php?
Tell me how to set a page as a home page in a php based site?