db_fetch_array
includes/database.pgsql.inc, line 174
- Versions
- 4.6 – 6
db_fetch_array($result)- 7
db_fetch_array(DatabaseStatementInterface $statement)
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
Code
<?php
function db_fetch_array($result) {
if ($result) {
return pg_fetch_assoc($result);
}
}
?> 