On Thursday 27 June 2002 16:20, Jefferson Cowart wrote: > Is there any way to return all the rows returned by a mysql query with > one command.
I don't think there is a built-in command to do so. > Currently I have to run through a for or while loop the > same number of times as there are rows and take that row and copy it to > an array. I end up with an array of arrays No need to use a for loop, I prefer to use a while loop. > but it seems like it would be > a common enough problem that the function would already exist. Once you have the code working just wrap it up in a function or a class and away you go. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* My pants just went to high school in the Carlsbad Caverns!!! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php