note 49607 added to function.pg-fetch-array
| From: | devnull at osu1 dot php dot net | Date: | Wed, 02 Feb 2005 21:59:43 +0000 |
| Subject: | note 49607 added to function.pg-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84396@lists.php.net to get a copy of this message | ||
In response to eth0's comment below about SELECT'ing from two tables where the tables have
columns with the same names, you can get around this problem like this:
"SELECT table1.foo AS foo1, table2.foo AS foo2 FROM table1, table2"
In the associative array returned, the keys will be "foo1" and "foo2".
----
Manual Page -- http://www.php.net/manual/en/function.pg-fetch-array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49607
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49607&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49607&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49607&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49607&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49607&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49607&report=yes
Search -- http://master.php.net/manage/user-notes.php