|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-12 20:09 UTC] torben@php.net
[2002-04-25 04:34 UTC] mderk at yandex dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Mar 22 12:00:01 2026 UTC |
When you SELECT two columns from different tables with the same column name in a JOIN, you cannot use column names is associative array keys. It would be really nice when you did something like this: ------- $result = mysql_query("SELECT tbl1.colA, tbl2.colA FROM tbl1 LEFT JOIN tbl2 ON tbl1.colB = tbl2.colB"); $row = mysql_fetch_array($result); ------- if you could then do something like this: ------- $mydata1 = $row["tbl1.colA"]; $mydata1 = $row["tbl2.colA"]; ------- With the current behavior, you may only access the second array element with its numerical index.