[PHP] Mysql fetch_row()

2004-06-20 Thread Gerben
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

Re: [PHP] Mysql fetch_row()

2004-06-20 Thread Greg Donald
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

RE: [PHP] Mysql fetch_row()

2004-06-20 Thread rich
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

Re: [PHP] Mysql fetch_row()

2004-06-20 Thread Daniel Clark
Use mysql_fetch_assoc() for fieldnames 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