db_fetch_array

Versions
4.6 – 6
db_fetch_array($result)

Fetch one result row from the previous query as an array.

Parameters

$result A database query result resource, as returned from db_query().

Return value

An associative array representing the next row of the result. The keys of this object are the names of the table fields selected by the query, and the values are the field values for this result row.

Related topics

▾ 18 functions call db_fetch_array()

aggregator_cron in modules/aggregator.module
Implementation of hook_cron().
aggregator_get_category in modules/aggregator.module
aggregator_get_feed in modules/aggregator.module
block_admin_configure in modules/block.module
Menu callback; displays the block configuration form.
block_box_get in modules/block.module
block_list in modules/block.module
Return all blocks in the specied region for the current user. You may
book_nodeapi in modules/book.module
Implementation of hook_nodeapi().
comment_nodeapi in modules/comment.module
Implementation of hook_nodeapi().
hook_cron in developer/hooks/core.php
Perform periodic actions.
hook_init in developer/hooks/core.php
Perform setup tasks.
path_load in modules/path.module
Fetch a specific URL alias from the database.
poll_load in modules/poll.module
Implementation of hook_load().
profile_admin_edit in modules/profile.module
Menu callback; displays the profile field editing form.
statistics_get in modules/statistics.module
Retrieves a node's "view statistics".
taxonomy_get_synonyms in modules/taxonomy.module
Return an array of synonyms of the given term ID.
update_101 in database/updates.inc
user_admin_access_edit in modules/user.module
Menu callback: edit an access rule
user_fields in modules/user.module

Code

includes/database.pgsql.inc, line 91

<?php
function db_fetch_array($result) {
  if ($result) {
    return pg_fetch_assoc($result);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.