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, or FALSE. 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.

▾ 171 functions call db_fetch_array()

aggregator_category_load in drupal/modules/aggregator/aggregator.module
Load an aggregator category.
aggregator_cron in drupal/modules/aggregator/aggregator.module
Implementation of hook_cron().
aggregator_feed_load in drupal/modules/aggregator/aggregator.module
Load an aggregator feed.
apachesolr_enabled_facets_form in contributions/apachesolr/apachesolr.admin.inc
Creates the form that allows the user to select which facets will be enabled.
apachesolr_og_reindex in contributions/apachesolr/contrib/apachesolr_og/apachesolr_og.module
Submit function to make group nodes as needing re-indexing.
apachesolr_update_6004 in contributions/apachesolr/apachesolr.install
Subsume MLT functionality..
block_admin_configure in drupal/modules/block/block.admin.inc
Menu callback; displays the block configuration form.
block_box_get in drupal/modules/block/block.module
Returns information from database about a user-created (custom) block.
book_get_books in drupal/modules/book/book.module
Returns an array of all books.
book_link_load in drupal/modules/book/book.module
Like menu_link_load(), but adds additional data from the {book} table.
book_nodeapi in drupal/modules/book/book.module
Implementation of hook_nodeapi().
book_update_6000 in drupal/modules/book/book.install
Drupal 5.x to 6.x update.
book_update_bid in drupal/modules/book/book.module
Update the bid for a page and its children when it is moved to a new book.
comment_nodeapi in drupal/modules/comment/comment.module
Implementation of hook_nodeapi().
comment_service_load_node_comments in contributions/services/services/comment_service/comment_service.inc
Returns the comments of a specified node.
contact_load in drupal/modules/contact/contact.module
Load the data for a single contact category.
content_db_index_exists in contributions/cck/content.module
Checks if an index exists.
content_storage in contributions/cck/content.module
Handle storage ops for _content_field_invoke_default().
ctools_book_parent_context in contributions/ctools/plugins/relationships/book_parent.inc
Return a new context based on an existing context.
ctools_term_parent_context in contributions/ctools/plugins/relationships/term_parent.inc
Return a new context based on an existing context.
deploy_get_plan in contributions/deploy/deploy.module
Get the details for a single deployment plan.
deploy_get_plans in contributions/deploy/deploy.module
Get a list of all deployment plans.
deploy_get_plan_item in contributions/deploy/deploy.module
Get the details for a single deployment plan item.
deploy_get_plan_items in contributions/deploy/deploy.module
Retrieve all the details for all items in a plan.
deploy_get_server in contributions/deploy/deploy.module
Get the details for a single deployment plan server.
deploy_get_servers in contributions/deploy/deploy.module
Get a list of all deployment plan servers.
drupal_uninstall_module in drupal/includes/install.inc
Calls the uninstall function and updates the system table for a given module.
drush_db_result in contributions/drush/includes/drush.inc
A db_result() that works consistently for any version of Drupal.
event_zonelist in contributions/event/event.module
Returns an array of timezones, either keyed by the zones's numeric ID or by a composite key of ID and offset in seconds.
event_zonelist_by_id in contributions/event/event.module
Returns a single timezone
event_zone_by_name in contributions/event/event.module
Returns a single timezone by name
fieldgroup_groups in contributions/cck/modules/fieldgroup/fieldgroup.module
Returns all groups for a content type
file_service_get in contributions/services/services/file_service/file_service.inc
Get all elements from a given file
file_service_get_access in contributions/services/services/file_service/file_service.inc
Check if the user has permission to get a given file
flag_reset_flag in contributions/flag/flag.module
Remove all flagged content from a flag.
forum_nodeapi in drupal/modules/forum/forum.module
Implementation of hook_nodeapi().
forum_term_load in drupal/modules/forum/forum.module
Fetch a forum term.
hook_cron in documentation/hooks/core.php
Perform periodic actions.
image_attach_nodeapi in contributions/image/contrib/image_attach/image_attach.module
Implementation of hook_nodeapi().
lock_may_be_available in drupal/includes/lock.inc
Check if lock acquired by a different process may be available.
menu_delete_menu_confirm_submit in drupal/modules/menu/menu.admin.inc
Delete a custom menu and all items in it.
menu_edit_menu_submit in drupal/modules/menu/menu.admin.inc
Submit function for adding or editing a custom menu.
menu_enable in drupal/modules/menu/menu.module
Implementation of hook_enable()
menu_get_item in drupal/includes/menu.inc
Get a router item.
menu_get_menus in drupal/modules/menu/menu.module
Return an associative array of the custom menus names.
menu_get_names in drupal/includes/menu.inc
Build a list of named menus.
menu_link_delete in drupal/includes/menu.inc
Delete one or several menu links.
menu_link_load in drupal/includes/menu.inc
Get a menu link by its mlid, access checked and link translated for rendering.
menu_link_maintain in drupal/includes/menu.inc
Insert, update or delete an uncustomized menu link related to a module.
menu_link_save in drupal/includes/menu.inc
Save a menu link.
menu_load in drupal/modules/menu/menu.module
Load the data for a single custom menu.
menu_local_tasks in drupal/includes/menu.inc
Collects the local tasks (tabs) for a given level.
menu_nodeapi in drupal/modules/menu/menu.module
Implementation of hook_nodeapi().
menu_overview_page in drupal/modules/menu/menu.admin.inc
Menu callback which shows an overview page of all the custom menus and their descriptions.
menu_tree_check_access in drupal/includes/menu.inc
Check access and perform other dynamic operations for each link in the tree.
menu_tree_page_data in drupal/includes/menu.inc
Get the data structure representing a named menu tree, based on the current page.
menu_valid_path in drupal/includes/menu.inc
Validates the path of a menu link being created or edited.
migrate_export_content_set in contributions/migrate/migrate_pages.inc
Menu callback function.
nodereference_field in contributions/cck/modules/nodereference/nodereference.module
Implementation of hook_field().
nodereferrer_referrers in contributions/nodereferrer/nodereferrer.module
nodereferrer_referrers_with_translations in contributions/nodereferrer/views/nodereferrer.views.inc
Given a node id, field names and content names, returns the list of nodes that refer to the given node. This takes translation settings into account
node_export_drush_callback_export_type in contributions/node_export/node_export.drush.inc
Drush command callback.
og_panels_node_data in contributions/og_panels/og_panels.module
Helper function to load og_panels tab info for a node
og_panels_node_data in contributions/og_panels/og_panels.module
Helper function to load og_panels tab info for a node
openlayers_test_uninstall in contributions/openlayers/tests/openlayers_test.install
Implementation of hook_uninstall().
openlayers_uninstall in contributions/openlayers/openlayers.install
Implementation of hook_uninstall().
openlayers_uninstall in contributions/openlayers/openlayers.install
Implementation of hook_uninstall().
openlayers_views_uninstall in contributions/openlayers/modules/openlayers_views/openlayers_views.install
Implementation of hook_uninstall().
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.admin.inc
Menu callback: Generate a form to add/edit a user profile field.
salesforce_api_fieldmap_field_delete in contributions/salesforce/salesforce_api/salesforce_api.module
Remove a field from all fieldmaps. This is particularly useful for implementations of hook_content_fieldapi('delete instance'). May be use to delete an occurence in a single fieldmap (by supplying drupal_type and/or salesforce_type), or…
sf_prematch_match_by_load in contributions/salesforce/sf_prematch/sf_prematch.module
Loads a prematch from the database.
sf_prematch_update_1 in contributions/salesforce/sf_prematch/sf_prematch.install
See also salesforce_api_update_1
sf_queue_enqueue in contributions/salesforce/sf_queue/sf_queue.module
Helper function to add / update a queue item.
sf_queue_handle_deletes in contributions/salesforce/sf_queue/sf_queue.module
Helper function to process queue deletes. Since we can delete across object types by SFID alone, plow through 200 deletes at a time, oldest first. Break if we exceed the time limit.
sf_queue_handle_upserts in contributions/salesforce/sf_queue/sf_queue.module
Helper function to process queue updates and inserts (creates). The logic proceeds basically like this:
sf_user_fieldmap_objects in contributions/salesforce/sf_user/sf_user.module
Implementation of hook_fieldmap_objects().
signup_list_user_signups in contributions/signup/includes/no_views.inc
Return an array of all nodes the specified user has signed up for.
signup_node_settings_form_submit in contributions/signup/includes/node_settings.inc
Submit handler for the per-node signup settings form.
signup_save_node in contributions/signup/includes/node_form.inc
Save signup-related information when a node is created or edited.
statistics_get in drupal/modules/statistics/statistics.module
Retrieves a node's "view statistics".
storage_api_class_load in contributions/storage_api/storage_api.module
Loads a storage class.
storage_api_containers in contributions/storage_api/containers.admin.inc
storage_api_container_form in contributions/storage_api/containers.admin.inc
FAPI definition for the container form.
storage_api_container_load in contributions/storage_api/storage_api.module
Loads a storage container.
storage_api_file_load in contributions/storage_api/storage_api.module
Loads a file.
storage_api_get_local_filepath in contributions/storage_api/storage_api.module
Get a filepath that can be used to access a file locally.
storage_api_inherit_servings in contributions/storage_api/storage_api.module
Transfers serving statistics from one file to another.
storage_api_selector_item in contributions/storage_api/storage_api.module
Generates a FAPI select element for a class selector.
storage_api_service_load in contributions/storage_api/storage_api.module
Loads a storage service.
subpath_alias_url_inbound_alter in contributions/subpath_alias/subpath_alias.module
Implementation of hook_url_inbound_alter().
subpath_alias_url_outbound_alter in contributions/subpath_alias/subpath_alias.module
Implementation of hook_url_outbound_alter().
swftools_profiles_get_profiles in contributions/swftools/profiles/swftools_profiles.module
Returns an array of available profiles.
swftools_profiles_get_profiles in contributions/swftools/profiles/swftools_profiles.module
Returns an array of available profiles.
system_admin_menu_block in drupal/modules/system/system.module
Provide a single block on the administration overview page.
system_charts_build in contributions/chart/contrib/system_charts/system_charts.module
Gather data and build a chart API structure.
system_charts_build in contributions/chart/contrib/system_charts/system_charts.module
Gather data and build a chart API structure.
system_get_module_admin_tasks in drupal/modules/system/system.module
Generate a list of tasks offered by a specified module.
system_initialize_theme_blocks in drupal/modules/system/system.module
Assign an initial, default set of blocks for a theme.
system_main_admin_page in drupal/modules/system/system.admin.inc
Menu callback; Provide the administration overview page.
system_settings_deploy_form_submit in contributions/deploy/modules/system_settings_deploy/system_settings_deploy.module
Submit handler for systems settings forms that have deployment enabled.
system_update_6021 in drupal/modules/system/system.install
Migrate the menu items from the old menu system to the new menu_links table.
tac_fields_admin_form in contributions/taxonomy_access/tac_fields/tac_fields.admin.inc
Main administration form, with grid of permissions per term.
tac_fields_field_access in contributions/taxonomy_access/tac_fields/tac_fields.module
Implements hook_field_access().
tac_fields_recursive_update in contributions/taxonomy_access/tac_fields/tac_fields.admin.inc
taxonomy_access_admin_delete_role in contributions/taxonomy_access/taxonomy_access_admin.inc
Form callback to delete all access rules for a particular role.
taxonomy_access_admin_form in contributions/taxonomy_access/taxonomy_access_admin.inc
Form for managing grants by role.
taxonomy_access_db_rewrite_sql in contributions/taxonomy_access/taxonomy_access.module
Implements hook_db_rewrite_sql().
taxonomy_access_enable in contributions/taxonomy_access/taxonomy_access.module
Implements hook_enable().
taxonomy_access_get_default_grants in contributions/taxonomy_access/taxonomy_access.module
Gets default permissions for a given role.
taxonomy_access_get_grants in contributions/taxonomy_access/taxonomy_access.module
Gets permissions for a given role.
taxonomy_access_node_access_records in contributions/taxonomy_access/taxonomy_access.module
Implements hook_node_access_records().
taxonomy_access_preserve_terms in contributions/taxonomy_access/taxonomy_access.module
Used to preserve terms deleted by taxonomy_node_delete() that the user shouldn't have access to delete. See http://drupal.org/node/92355 and http://drupal.org/node/93086
taxonomy_access_recursive_grant_update in contributions/taxonomy_access/taxonomy_access_admin.inc
Recursively updates permissions for a role for a term.
taxonomy_access_update_5 in contributions/taxonomy_access/taxonomy_access.install
Move global default records from term_access to term_access_defaults.
taxonomy_csv_term_count_in_vocabulary in contributions/taxonomy_csv/taxonomy_csv.term.api.inc
Calculate number of terms in a vocabulary or in all vocabularies.
taxonomy_get_synonyms in drupal/modules/taxonomy/taxonomy.module
Return an array of synonyms of the given term ID.
themekey_check_theme_enabled in contributions/themekey/themekey_base.inc
Checks if a theme is enabled and fires warning messages to the site's administrator
themekey_get_global_parameters in contributions/themekey/themekey_base.inc
Assigns global parameters' values to ThemeKey properties. Therefor it calls hook_themekey_global()
themekey_load_rules in contributions/themekey/themekey_build.inc
Loads all ThemeKey Rules from the database. Therefor it uses a recursion to build the rule chains.
themekey_match_rule_childs in contributions/themekey/themekey_base.inc
Helper function of @see themekey_match_rules()
themekey_node_get_simple_node_property in contributions/themekey/modules/themekey.node.inc
Helper function that loads a node and returns the value of a node's property.
themekey_node_get_simple_node_property in contributions/themekey/modules/themekey.node.inc
Helper function that loads a node and returns the value of a node's property.
themekey_rebuild in contributions/themekey/themekey_build.inc
Rebuilds all ThemeKey related drupal variables by calling ThemeKey's hooks:
themekey_rule_get in contributions/themekey/themekey_build.inc
Loads ThemeKey rule from database.
themekey_update_6001 in contributions/themekey/themekey.install
Implements hook_update_N().
themekey_update_6105 in contributions/themekey/themekey.install
Implements hook_update_N().
themekey_update_6200 in contributions/themekey/themekey.install
Implements hook_update_N().
themekey_update_6202 in contributions/themekey/themekey.install
Implements hook_update_N().
theme_taxonomy_access_admin in contributions/taxonomy_access/taxonomy_access_admin.inc
Renders the main administration page, with links to configure each role.
twitter_account_load in contributions/twitter/twitter.inc
twitter_twitter_accounts in contributions/twitter/twitter.module
An implementation of hook_twitter_accounts. We want to move this into a separate module eventually, but sticking the code here and using a hook lets other modules solve the 'what accounts can a user post with' problem in cleaner ways.
twitter_twitter_accounts in contributions/twitter/twitter.module
An implementation of hook_twitter_accounts. We want to move this into a separate module eventually, but sticking the code here and using a hook lets other modules solve the 'what accounts can a user post with' problem in cleaner ways.
twitter_update_6300 in contributions/twitter/twitter.install
Update from 2.x to 3.x
uc_recurring_order_recurring_renewal_pending in contributions/uc_recurring/modules/uc_recurring_order/uc_recurring_order.module
Implements hook_recurring_renewal_pending()
user_admin_access_edit in drupal/modules/user/user.admin.inc
Menu callback: edit an access rule.
user_external_load in drupal/modules/user/user.module
user_fields in drupal/modules/user/user.module
views_deploy_add_form in contributions/deploy/modules/views_deploy/views_deploy.pages.inc
Display view add to deployment plan form.
views_update_6009 in contributions/views/views.install
webform_load in contributions/webform/webform.module
Implementation of hook_load().
_block_rehash in drupal/modules/block/block.module
Update the 'blocks' DB table with the blocks currently exported by modules.
_book_update_outline in drupal/modules/book/book.module
Common helper function to handles additions and updates to the book outline.
_feedapi_get_stat in contributions/feedapi/feedapi.module
Return the type-specific statistics data
_menu_delete_item in drupal/includes/menu.inc
Helper function for menu_link_delete; deletes a single menu link.
_menu_navigation_links_rebuild in drupal/includes/menu.inc
Helper function to build menu links for the items in the menu router.
_menu_set_expanded_menus in drupal/includes/menu.inc
Helper function to update a list of menus with expanded items
_menu_tree_data in drupal/includes/menu.inc
Recursive helper function to build the data representing a menu tree.
_node_access_rebuild_batch_operation in drupal/modules/node/node.module
Batch operation for node_access_rebuild_batch.
_openlayers_upgrade_1xto2x in contributions/openlayers/openlayers.install
Function to handle upgrading from 1.x to 2.x
_openlayers_upgrade_1xto2x in contributions/openlayers/openlayers.install
Function to handle upgrading from 1.x to 2.x
_sf_node_import_cck_content_taxonomy in contributions/salesforce/sf_contrib/sf_contrib.module
_storage_api_file_instance_exists in contributions/storage_api/storage_api.module
_storage_api_get_selector_initial_container in contributions/storage_api/storage_api.module
_storage_api_initial_container_instance in contributions/storage_api/storage_api.module
_storage_api_object_instance_exists in contributions/storage_api/storage_api.module
_storage_api_serving_container in contributions/storage_api/storage_api.module
_storage_api_update_services in contributions/storage_api/storage_api.module
_tac_fields_admin_for_field in contributions/taxonomy_access/tac_fields/tac_fields.admin.inc
Renders admin table for each field, with links to configure each role.
_textimage_preset_load in contributions/textimage/textimage.module
load a preset by id or name.
_webform_analysis_rows_date in contributions/webform/components/date.inc
Calculate and returns statistics about results for this component from all submission to this webform. The output of this function will be displayed under the "results" tab then "analysis".
_webform_analysis_rows_file in contributions/webform/components/file.inc
Calculate and returns statistics about results for this component from all submission to this webform. The output of this function will be displayed under the "results" tab then "analysis".
_webform_analysis_rows_file in contributions/webform/components/file.inc
Calculate and returns statistics about results for this component from all submission to this webform. The output of this function will be displayed under the "results" tab then "analysis".
_webform_analysis_rows_select in contributions/webform/components/select.inc
Calculate and returns statistics about results for this component from all submission to this webform. The output of this function will be displayed under the "results" tab then "analysis".
_webform_analysis_rows_textfield in contributions/webform/components/textfield.inc
Calculate and returns statistics about results for this component from all submission to this webform. The output of this function will be displayed under the "results" tab then "analysis".
_weblinks_blocks_content in contributions/weblinks/contribs/weblinks_blocks/weblinks_blocks.module
Prepare block content.
_weblinks_blocks_related_block in contributions/weblinks/contribs/weblinks_blocks/weblinks_blocks.module
Prepare the Related Links block.
_weblinks_blocks_related_block in contributions/weblinks/contribs/weblinks_blocks/weblinks_blocks.module
Prepare the Related Links block.
_weblinks_links in contributions/weblinks/weblinks.module
Prepare links content.
_weblinks_links in contributions/weblinks/weblinks.module
Prepare links content.

Code

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

<?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 shown in the image.