Re: DB::getAssoc

From: Date: Sat, 13 Jul 2002 07:44:49 +0000
Subject: Re: DB::getAssoc
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7700@lists.php.net to get a copy of this message
If i get you well, call it with DB::getAssoc(query, null, DB_FETCHMODE_ASSOC) should do what you want. I may have misunderstood but you should give it a try ;)) Arnaud. > Would it be possible to have DB::getAssoc return the following > structure? > > array( > [record1] => array( > [column1] => data, > [column2] => data > ) > [record2] => array( > [column1] => data, > [column2] => data > ) > ) > > instead of just > > array( > [record1] => array( > [0] => data, > [1] => data > ) > [record2] => array( > [0] => data, > [1] => data > ) > ) > > Notice how the nested data is also an associative array with the > field names as the keys. > > Dan > > -- > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > Daniel Allen, <dan@mojavelinux.com> > http://www.mojavelinux.com/ > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > Windows: where do you want your data to disappear to today? > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.pear.dev (#7700) next »