note 62387 added to function.pg-select
| From: | wietse at cj2 dot nl | Date: | Mon, 27 Feb 2006 16:20:18 +0000 |
| Subject: | note 62387 added to function.pg-select | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104494@lists.php.net to get a copy of this message | ||
David mentioned that you can't do a Select all.
However, when executing this script:
<?php
$conn_string = "dbname=mydb";
$db = pg_connect($conn_string);
$selectfields = array("imgid" => "");
$records = pg_select($db,"mmsfiles",$selectfields);
print_r($records);
?>
...I get this result:
Array
(
[0] => Array
(
[imgid] => 1
[file] => /home/wietse/public_html/mms/images/1.gif
[thumb] =>
)
[1] => Array
(
[imgid] => 2
[file] => /home/wietse/public_html/mms/images/2.gif
[thumb] =>
)
[2] => Array
(
[imgid] => 3
[file] => /home/wietse/public_html/mms/images/3.gif
[thumb] =>
)
[3] => Array
(
[imgid] => 4
[file] => /home/wietse/public_html/mms/images/4.gif
[thumb] =>
)
)
----
Server IP: 82.146.33.222
Probable Submitter: 62.58.152.243
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.pg-select.php
Edit -- http://master.php.net/note/edit/62387
Del: integrated -- http://master.php.net/note/delete/62387/integrated
Del: useless -- http://master.php.net/note/delete/62387/useless
Del: bad code -- http://master.php.net/note/delete/62387/bad+code
Del: spam -- http://master.php.net/note/delete/62387/spam
Del: non-english -- http://master.php.net/note/delete/62387/non-english
Del: in docs -- http://master.php.net/note/delete/62387/in+docs
Del: other reasons-- http://master.php.net/note/delete/62387
Reject -- http://master.php.net/note/reject/62387
Search -- http://master.php.net/manage/user-notes.php