db_fetch_array
Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.
includes/database.mysql.inc, строка 157
- Версии
- 5 – 6
db_fetch_array($result)
Выбирает одну запись из результата предыдущего запроса и представляет ее как массив.
Параметры
$result
Ресурс результата запроса к базе данных, который возвращает db_query()
.
Возвращаемое значение
Ассоциативный массив, представляющий следующую запись в результате или FALSE
. Ключами массива являются поля выборки запроса.
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.
Связанные темы
- Уровень абстракции базы данных
- Позволяет выполнять один программный код на разных СУБД.
▾ 54 функции вызывают db_fetch_array()
- aggregator_category_load in modules/aggregator/aggregator.module
- Загружает категорию агрегатора.
- aggregator_cron in modules/aggregator/aggregator.module
- Реализация hook_cron().
- aggregator_feed_load in modules/aggregator/aggregator.module
- Загружает фид.
- batch_example_op_2 in developer/examples/batch_example.module
- Batch operation for batch 2 : load all nodes, 5 by five This is a multipart operation, using the
- block_admin_configure in modules/block/block.admin.inc
- Коллбэк меню. Отображает форму настройки блока.
- block_box_get in modules/block/block.module
- book_get_books in modules/book/book.module
- Возвращает массив всех книг.
- book_link_load in modules/book/book.module
- Like menu_link_load(), but adds additional data from the {book} table.
- book_nodeapi in modules/book/book.module
- Implementation of hook_nodeapi().
- book_update_6000 in modules/book/book.install
- Drupal 5.x to 6.x update.
- book_update_bid in modules/book/book.module
- Update the bid for a page and its children when it is moved to a new book.
- comment_nodeapi in modules/comment/comment.module
- Реализация hook_nodeapi().
- contact_load in modules/contact/contact.module
- Загружает данные категории контактов.
- drupal_uninstall_module in includes/install.inc
- Calls the uninstall function and updates the system table for a given module.
- forum_nodeapi in modules/forum/forum.module
- Implementation of hook_nodeapi().
- forum_term_load in modules/forum/forum.module
- Загружает термин форума из таксономии.
- hook_cron in developer/hooks/core.php
- Выполняет запланированные действия по расписанию.
- menu_delete_menu_confirm_submit in modules/menu/menu.admin.inc
- Delete a custom menu and all items in it.
- menu_edit_menu_submit in modules/menu/menu.admin.inc
- Submit function for adding or editing a custom menu.
- menu_enable in modules/menu/menu.module
- Реализация hook_enable().
- menu_get_item in includes/menu.inc
- Получает элемент роутера.
- menu_get_menus in modules/menu/menu.module
- Return an associative array of the custom menus names.
- menu_get_names in includes/menu.inc
- Строит список названий меню.
- menu_link_delete in includes/menu.inc
- Удаляет один или несколько пунктов меню.
- menu_link_load in includes/menu.inc
- Возвращает элемент меню по его идентификатору (mlid), с проверкой доступа и переведенным заголовком и описанием. Такой элемент готов к рендерингу и выводу.
- menu_link_maintain in includes/menu.inc
- Вставляет, обновляет или удаляет uncustomized ссылку меню относящуюся к модулю.
- menu_link_save in includes/menu.inc
- Сохраняет ссылку меню.
- menu_load in modules/menu/menu.module
- Загружает данные ветки меню.
- menu_local_tasks in includes/menu.inc
- Собирает локальные задачи (вкладки) для заданного уровня.
- menu_nodeapi in modules/menu/menu.module
- Реализация hook_nodeapi().
- menu_overview_page in 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 includes/menu.inc
- Проверяет доступ и выполняет другие динамические операции для каждой ссылки в дереве меню.
- menu_tree_page_data in includes/menu.inc
- Get the data structure representing a named menu tree, based on the current page.
- menu_valid_path in includes/menu.inc
- Проверяет путь ссылки создаваемого или редактируемого пункта меню.
- path_load in modules/path/path.module
- Извлекает специфичный синоним URL из базы данных.
- poll_load in modules/poll/poll.module
- Implementation of hook_load().
- profile_field_form in modules/profile/profile.admin.inc
- Menu callback: Generate a form to add/edit a user profile field. See alsoprofile_field_form_validate()
- statistics_get in modules/statistics/statistics.module
- Retrieves a node's 'view statistics'.
- system_admin_menu_block in modules/system/system.module
- Создает простой блок на странице администрирования.
- system_get_module_admin_tasks in modules/system/system.module
- Создаёт список задач предлагаемый указанным модулем.
- system_initialize_theme_blocks in modules/system/system.module
- Assign an initial, default set of blocks for a theme.
- system_main_admin_page in modules/system/system.admin.inc
- Menu callback; Provide the administration overview page.
- system_update_6021 in modules/system/system.install
- Migrate the menu items from the old menu system to the new menu_links table.
- taxonomy_get_synonyms in modules/taxonomy/taxonomy.module
- Возвращает массив синонимов термина с данным ID
- user_admin_access_edit in modules/user/user.admin.inc
- Menu callback: edit an access rule.
- user_external_load in modules/user/user.module
- user_fields in modules/user/user.module
- _block_rehash in modules/block/block.module
- Update the 'blocks' DB table with the blocks currently exported by modules.
- _book_update_outline in modules/book/book.module
- Common helper function to handles additions and updates to the book outline.
- _menu_delete_item in includes/menu.inc
- Вспомогательная функция для menu_link_delete; удаляет единичную ссылку меню.
- _menu_navigation_links_rebuild in includes/menu.inc
- Helper function to build menu links for the items in the menu router.
- _menu_set_expanded_menus in includes/menu.inc
- Helper function to update a list of menus with expanded items
- _menu_tree_data in includes/menu.inc
- Recursive helper function to build the data representing a menu tree.
- _node_access_rebuild_batch_operation in modules/node/node.module
- Batch operation for node_access_rebuild_batch.
Код
<?php
function db_fetch_array($result) {
if ($result) {
return mysql_fetch_array($result, MYSQL_ASSOC);
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии