Re: Getting mysql_query results into an array
| From: | Skip Evans | Date: | Wed, 14 Feb 2007 00:43:10 +0000 |
| Subject: | Re: Getting mysql_query results into an array | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248837@lists.php.net to get a copy of this message | ||
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. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/