note 85312 added to function.pg-fetch-result
| From: | nboutelier at hotmail dot com | Date: | Mon, 25 Aug 2008 17:51:42 +0000 |
| Subject: | note 85312 added to function.pg-fetch-result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143811@lists.php.net to get a copy of this message | ||
pg_fetch_result returns an infinite associative array.
$query = pg_query("SELECT one FROM table1");
$result = pg_fetch_result($query,0,0);
if (isset($result['this_is_not_an_associative_array'])) echo 'error';
----
Server IP: 209.41.74.194
Probable Submitter: 63.110.14.95
----
Manual Page -- http://www.php.net/manual/en/function.pg-fetch-result.php
Edit -- https://master.php.net/note/edit/85312
Del: integrated -- https://master.php.net/note/delete/85312/integrated
Del: useless -- https://master.php.net/note/delete/85312/useless
Del: bad code -- https://master.php.net/note/delete/85312/bad+code
Del: spam -- https://master.php.net/note/delete/85312/spam
Del: non-english -- https://master.php.net/note/delete/85312/non-english
Del: in docs -- https://master.php.net/note/delete/85312/in+docs
Del: other reasons-- https://master.php.net/note/delete/85312
Reject -- https://master.php.net/note/reject/85312
Search -- https://master.php.net/manage/user-notes.php