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 the importance of "action" attribute in a html form?
What is $$ in php?
Does php need html?
Why do we use cookie?
Tell me how do I check if a given variable is empty?
Why should I learn php?
What is difference between variable declaration and variable definition?
How could I install codeignitor ?
Does php pass arrays by reference?
What is php addslashes?
Explain how can we execute a php script using command line?
What is the timeout period on session values?
What is difference between rest and http?
What is the difference between require_once and require in php?
Is php secure?