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
Explain me is multiple inheritance supported in php?
What does explode do in php?
How to create a session? How to set a value in session?
How to split a string into array using php?
What is variable declaration?
What is binary safe string?
What is fetch array in php?
What is purpose of @ in Php?
What is difference Between PHP 5 and 7?
Can a trait extend a class php?
How do I run a php program in dreamweaver?
Explain setcookie() function in php?
Can you extend a final defined class?
What is php date function?
What is the difference between characters 34 and x34?