| 5 database.mysql.inc | db_num_rows($result) |
| 5 database.pgsql.inc | db_num_rows($result) |
| 5 database.mysqli.inc | db_num_rows($result) |
Determine how many result rows were found by the preceding query.
Parameters
$result: A database query result resource, as returned from db_query().
Return value
The number of result rows.
Related topics
32 calls to db_num_rows()
File
- includes/
database.mysqli.inc, line 199 - Database interface code for MySQL database servers using the mysqli client libraries. mysqli is included in PHP 5 by default and allows developers to use the advanced features of MySQL 4.1.x, 5.0.x and beyond.
Code
function db_num_rows($result) {
if ($result) {
return mysqli_num_rows($result);
}
}
Login or register to post comments