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 difference between implode() and explode() in php?
What is the best way to change the key without changing the value of a php array element?
Explain what are the two main string operators?
How many escape sequences are recognized in double-quoted strings?
A process is identified by a unique___
How come the code works, but does not for two-dimensional array of mine?
What is the difference between array_map () and array_shift ()?
What is preg_match?
Why php is sometimes called as embedded scripting language?
What is the maximum size of a database in mysql?
What is php resource type?
Does php support function overloading?
How long does a php session last for?
How to calculate the length of a string?
What is singleton pattern in php?