Re: [PHP] make keys of a associative array DB field names?

2006-04-14 Thread Paul Novitski
At 12:54 PM 4/14/2006, Bing Du wrote: Would anybody remind me how this should be achieved? This returns all the names of the fields. while( ($f = odbtp_fetch_field( $qry )) ) { echo $f->name . "\n"; } This returns the query results: while( ($rec = odbtp_fetch_array($qry)) ) { f

[PHP] make keys of a associative array DB field names?

2006-04-14 Thread Bing Du
Hi, Would anybody remind me how this should be achieved? This returns all the names of the fields. while( ($f = odbtp_fetch_field( $qry )) ) { echo $f->name . "\n"; } This returns the query results: while( ($rec = odbtp_fetch_array($qry)) ) { foreach ($rec as $var) { ech