Getting mysql_query results into an array
| From: | Skip Evans | Date: | Tue, 13 Feb 2007 23:34:31 +0000 |
| Subject: | Getting mysql_query results into an array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-248834@lists.php.net to get a copy of this message | ||
Hey all,
I read on php.net about resources, the type returned from mysql_query(), and was trying locate the best way to get the result set back from a query into an array.
Is simply looping through the result set with mysql_fetch_assoc() the common way to do this?
As great as PHP is with arrays I was wondering if there is some simply, more efficient way, but as yet have not located one.
Thanks,
Skip
--
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/