|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-25 05:50 UTC] jah at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 12:00:01 2025 UTC |
The scenario is described here: mydb=> create table test ( name char(50), phone char(8) ); mydb=> insert int test values ('Renato', '3434343'); query.php: <? $conn = pg_connect("dbname=mydb"); $result = pg_exec($conn, "select name, phone from test") $arr = pg_fetch_array($result, 0); echo $arr["name"]; ?> ( nothing gets printed out. but if I use $arr[0] I get 'Renato')