note 28866 deleted from function.mysql-fetch-assoc by didou
| From: | didou@php.net | Date: | Sat, 16 Aug 2003 09:32:38 +0000 |
| Subject: | note 28866 deleted from function.mysql-fetch-assoc by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54309@lists.php.net to get a copy of this message | ||
Note Submitter: nevermind@blaat.nl
----
[[[Editors note: Or you can make a query such as:
SELECT
foo.bar AS anything,
baz.bar AS bazabar
...
And call, for example, $row['bazabar']; ]]
if you use this SQL query:
SELECT
start_super_super_collections.name,
start_super_collections.name
.......
and then get the result with mysql_fetch_assoc() then you'll get only ONE result collumn keyed
by 'name'. use mysql_fetch_row() instead, then you'll get TWO collumns keyed 0 and 1.