note 15565 added to function.pg-fetch-array
| From: | rvtol at isolution dot nl | Date: | Tue, 18 Sep 2001 01:40:01 +0000 |
| Subject: | note 15565 added to function.pg-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18103@lists.php.net to get a copy of this message | ||
To have both the associative and the numeric interface
(to the array of fetched data)
connected to a single data-set, try this:
$row = pg_fetch_array($rslt,$rownr, PGSQL_ASSOC);
foreach($row as $k => $v) $row[] = &$row[$k]; // (mind the ampersand)
http://www.php.net/manual/en/function.pg-fetch-array.php