RE: [PHP] Mysql fetch_row()
| From: | rich | Date: | Sun, 20 Jun 2004 17:44:28 +0000 |
| Subject: | RE: [PHP] Mysql fetch_row() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188700@lists.php.net to get a copy of this message | ||
> when I call mysql_fetch_row() I get an array, but this Array doesn't have
> the fieldnames as array-keys.
> I've seen several codes from others where they use something like
>
> print $row['key'];
>
> This doesn't work on my server. Is this because my server-software is too
> old or am I using the wrong function?
...the wrong function - use mysql_fetch_assoc()
rich