Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
db_fetch_array($result)
6/includes/database.pgsql.inc, line 188
Fetch one result row from the previous query as an array.
$result A database query result resource, as returned from db_query().
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.
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
<?php
function db_fetch_array($result) {
if ($result) {
return pg_fetch_assoc($result);
}
}
?>