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 http get and post?
Which function would you use to insert a record into a database in php?
What is 'float' property in css?
What are the functions to be used to get the image's properties (size, width and height)?
How does session work in php?
How to remove html tags from data in php?
What is php simple definition?
What are the delimiters in php?
What is a variable cost example?
How does the identity operator ===compare two values in PHP?
Is php free to use?
What's php?
Php being an open source is there any support available to it?
How to check an key is exists in array?
Explain me soundex() and metaphone()?