RE: [PHP] MySQL result to Associative array
| From: | Tony Crockford | Date: | Mon, 21 Oct 2002 14:22:17 +0000 |
| Subject: | RE: [PHP] MySQL result to Associative array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120735@lists.php.net to get a copy of this message | ||
> Just out of curiosity, can you try replacing as follows:
>
> mysql_fetch_array ($md_result, MYSQL_BOTH);
>
> and then
>
> echo $myarray[0];
No, that didn't work either, nothing from
echo $myarray[0];
I do know I have results, this is what I get for:
echo $md_ref, "-", $md_title, "<br />\n";
in the while loop:
1-Creator
2-Contributor
3-Date
4-Format
5-Language
6-Coverage
7-Source
8-Subject
9-Type
10-Publisher
11-Rights
which is what I had hoped would be loaded into the array and then I
could echo the title by supplying the ref.
TIA
Tony