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
Do while loops php?
How to check a variable is an array or not in php?
Does php support inheritance?
What is a persistence cookie?
How to declare an array in php?
What is json php?
What is the function of trim?
What is polymorphism?
Tell me how can we check the value of a given variable is alphanumeric?
Is php a middleware?
How be the result set of mysql handled in php?
What is echo in html?
What are the advantages of triggers?
Does wordpress run on php 7?
What is php and its advantages?