note 35787 added to function.pg-fetch-array
| From: | enyo at rn2 dot php dot net | Date: | Sun, 14 Sep 2003 22:55:44 +0000 |
| Subject: | note 35787 added to function.pg-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56485@lists.php.net to get a copy of this message | ||
Just because it is not really clear how to specify the result type, I poste this message.
I wrote a wrapper function which looks like this:
<?php
function db_fetch_array ($result, $row = NULL, $result_type = PGSQL_ASSOC)
{
$return = @pg_fetch_array ($result, $row, $result_type);
return $return;
}
?>
I think this way it is quite comfortable to get the arrays you want.
----
Manual Page -- http://www.php.net/manual/en/function.pg-fetch-array.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35787
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35787&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35787&report=yes