Same name in this branch
- 4.6.x includes/database.pgsql.inc \db_fetch_array()
- 4.6.x includes/database.mysql.inc \db_fetch_array()
Same name and namespace in other branches
- 4.7.x includes/database.pgsql.inc \db_fetch_array()
- 4.7.x includes/database.mysqli.inc \db_fetch_array()
- 4.7.x includes/database.mysql.inc \db_fetch_array()
- 5.x includes/database.pgsql.inc \db_fetch_array()
- 5.x includes/database.mysqli.inc \db_fetch_array()
- 5.x includes/database.mysql.inc \db_fetch_array()
- 6.x includes/database.pgsql.inc \db_fetch_array()
- 6.x includes/database.mysqli.inc \db_fetch_array()
- 6.x includes/database.mysql.inc \db_fetch_array()
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
8 calls to db_fetch_array()
- aggregator_get_category in modules/
aggregator.module - aggregator_get_feed in modules/
aggregator.module - block_box_get in modules/
block.module - hook_init in developer/
hooks/ core.php - Perform setup tasks.
- path_load in modules/
path.module - Fetch a specific URL alias from the database.
File
- includes/
database.mysql.inc, line 95 - Database interface code for MySQL database servers.
Code
function db_fetch_array($result) {
if ($result) {
return mysql_fetch_array($result, MYSQL_ASSOC);
}
}