Re: [Phplib-users] fetch an associative array
Brought to you by:
nhruby,
richardarcher
From: Peter C. <li...@kr...> - 2003-02-09 19:48:27
|
I think you'd have to write an extension to the db class with a new method which loops through the results and build up your array, or rewrite your higher-level code to cycle through using while($db->next_record) instead of foreach($array as $k => $record)... Peter At 20:06 09/02/03 +0100, dab wrote: >yes sorry, i meant the entire result set. >is it possible? > > > > --- Peter Cruickshank <li...@kr...> skrev: >> At 14:20 09/02/03 +0100, dab wrote: >> >i couldn't find anything in the manual about this >> but >> >is there anyway to fetch an associative array from >> the >> >query as it is in PEAR:DB? >> >thanks in advance.. >> >> After you have done $db->next_record(), $db->Record >> contains an associative array of the elements of the >> current record. >> >> Or do you mean the entire result-set? >> >> Peter >> |