Re: Getting mysql_query results into an array

From: Date: Wed, 14 Feb 2007 00:57:39 +0000
Subject: Re: Getting mysql_query results into an array
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-248838@lists.php.net to get a copy of this message
# skip@bigskypenguin.com / 2007-02-13 17:43:10 -0700: > Richard Lynch wrote: > >The most efficient way is "Don't do that." :-) > > > >Simply loop through the results and do whatever you want to do with > >them, and don't put them into an array at all. > > This makes perfect sense. > > However, I am currently writing an abstraction > layer for a project that will later be ported from > MySQL to another database (and I haven't even > been told what that database will be, but probably > MS SQL Server), so I was thinking if some sort of > "helper functions" might be useful, but I think > simple wrappers are probably the way to go. Use iterators. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991

« previous php.general (#248838) next »