> Is there any way to return all the rows returned by a mysql query with > one command. 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 but it seems like it would be > a common enough problem that the function would already exist.
No. Write your own wrapper function for MySQL_query() that does it for you...put it in a class....use it. Some abstraction layers that are out there may provide functions that do this for you, though. I generally avoid doing such things if I have to, that way I'm not wasting a bunch of memory in PHP by creating these huge arrays... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php