On Sun, 20 Jun 2004 19:05:31 +0200, Gerben <[EMAIL PROTECTED]> wrote: > > 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'];
'key' simply needs to be the primary key's field name you made when you made the table or whatever. If you named you primary key 'key' then your good, else use what it's really named. You can use PHP's key() function with an associative array but I find I rarely need it as I usually already know the field names and the primary keys of all my tables. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php