adspace
Which function is used in php to count the total number of rows returned by any query?
Answer Posted / Rajesh Singh
In PHP, you can use the mysqli_num_rows() or pg_num_rows() (for PostgreSQL) functions to count the total number of rows returned by a query. Here's an example:nn```phpn$result = mysqli_query($connection, 'SELECT * FROM table');n$numRows = mysqli_num_rows($result);necho $numRows; // Output: The total number of rows returned by the query.```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the current stable version of php?
What is difference between static and final in php?
Name and explain five of the PHP error constants?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
Which variable declarations within a class is invalid in php?
Explain me is it possible to destroy a cookie?
What is trait in php?
How to calculate the difference between two dates using php?
List some features of php that are deprecated in php7?
Write a program using while loop?
if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer
sort term descripttion form, report and uery
how to detect a mobile device using php
What is the difference between htmlentities() and htmlspecialchars()?
What does $_files means?