Re: Function request

From: Date: Mon, 12 Feb 2001 08:30:03 +0000
Subject: Re: Function request
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-46411@lists.php.net to get a copy of this message
On Mon, Feb 12, 2001 at 09:23:36AM +0100, Marc Boeren wrote: > >I think this would be nice. To be able to pull a multi-dimentional array > >from a mysql result. > > I'm working on a database abstraction module that does exactly this, and > should support every database module that is loaded into php. I've already > got it doing what you describe, only I return an object which includes > rowcount and fieldcount as well as the 2-d array results (index and/or > associative) (and I use [rownumber]["fieldname"] :-) Of course, this could also be done with a fairly simple PHP function as well, using the existing drivers. The work to build an array or object of a complete result set is just a for loop, after all. Matt

« previous php.dev (#46411) next »