db_fetch_array

Versions
5 – 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.

▾ 26 functions call db_fetch_array()

aggregator_cron in drupal/modules/aggregator/aggregator.module
Implementation of hook_cron().
aggregator_get_category in drupal/modules/aggregator/aggregator.module
aggregator_get_feed in drupal/modules/aggregator/aggregator.module
aggregator_menu in drupal/modules/aggregator/aggregator.module
Implementation of hook_menu().
block_admin_configure in drupal/modules/block/block.module
Menu callback; displays the block configuration form.
block_box_get in drupal/modules/block/block.module
book_nodeapi in drupal/modules/book/book.module
Implementation of hook_nodeapi().
comment_nodeapi in drupal/modules/comment/comment.module
Implementation of hook_nodeapi().
contact_admin_edit in drupal/modules/contact/contact.module
Category edit page.
drupal_notify in drupal/modules/drupal/drupal.module
Sends a ping to the Drupal directory server.
menu_edit_item_form in drupal/modules/menu/menu.module
Present the menu item editing form.
menu_edit_menu_form in drupal/modules/menu/menu.module
Menu callback; handle the adding/editing of a new menu.
menu_form_alter in drupal/modules/menu/menu.module
Implementation of hook_form_alter(). Add menu item fields to the node form.
path_load in drupal/modules/path/path.module
Fetch a specific URL alias from the database.
poll_load in drupal/modules/poll/poll.module
Implementation of hook_load().
profile_field_form in drupal/modules/profile/profile.module
Menu callback: Generate a form to add/edit a user profile field.
statistics_get in drupal/modules/statistics/statistics.module
Retrieves a node's "view statistics".
system_initialize_theme_blocks in drupal/modules/system/system.module
Assign an initial, default set of blocks for a theme.
system_update_151 in drupal/modules/system/system.install
taxonomy_get_synonyms in drupal/modules/taxonomy/taxonomy.module
Return an array of synonyms of the given term ID.
update_convert_table_utf8 in drupal/update.php
Convert a single MySQL table to UTF-8.
update_fix_access_table in drupal/update.php
user_admin_access_edit in drupal/modules/user/user.module
Menu callback: edit an access rule
user_external_load in drupal/modules/user/user.module
user_fields in drupal/modules/user/user.module
_system_update_utf8 in drupal/includes/install.inc
Converts a set of tables to UTF-8 encoding.

Code

drupal/includes/database.pgsql.inc, line 174

<?php
function db_fetch_array($result) {
  if ($result) {
    return pg_fetch_assoc($result);
  }
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.