note 32309 added to function.mysql-query
| From: | offf at vcharkarn dot com | Date: | Fri, 23 May 2003 11:32:02 +0000 |
| Subject: | note 32309 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48872@lists.php.net to get a copy of this message | ||
I have little problem
$result=mysql_query("select * from A left join B on xxx");
$row = mysql_fetch_result($result);
I have colum name 'money' in table A
and I also have the same column name 'money' in B too
(yes, they are different and independent)
How can I access them to get different value from this
query. ?
$row['money'] or $row['money_1'] or $row['B.money'] didn't work.
Thanks very much.
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32309
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32309&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32309&report=yes