function db_num_rows in Drupal 5
Same name in this branch
- 5 includes/database.mysqli.inc \db_num_rows()
- 5 includes/database.mysql.inc \db_num_rows()
- 5 includes/database.pgsql.inc \db_num_rows()
Same name and namespace in other branches
- 4 includes/database.mysqli.inc \db_num_rows()
- 4 includes/database.mysql.inc \db_num_rows()
- 4 includes/database.pgsql.inc \db_num_rows()
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()
- aggregator_parse_feed in modules/
aggregator/ aggregator.module - block_admin_configure_validate in modules/
block/ block.module - block_box_form_validate in modules/
block/ block.module - blog_block in modules/
blog/ blog.module - Implementation of hook_block().
- book_block in modules/
book/ book.module - Implementation of hook_block().
File
- includes/
database.pgsql.inc, line 188 - Database interface code for PostgreSQL database servers.
Code
function db_num_rows($result) {
if ($result) {
return pg_num_rows($result);
}
}