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 difference between html and php?
What are the two most common ways to start and finish a php block of code?
How do you explain independent and dependent variables?
What are the differences between GET and POST methods in form submitting?
Does empty check for null?
How to set cookies in PHP?
Can the value of a constant change during the script's execution?
Code to open file download dialog in PHP?
Write a hello world program using variable?
How is it possible to set an infinite execution time for php script?
How do you check if an arraylist is empty?
Is php easier than node?
Is php pass by reference or value?
Explain $_FILES Superglobal Array?
What is csrf validation?