Re: MySQL fetch data

From: Date: Thu, 27 Jun 2002 08:41:43 +0000
Subject: Re: MySQL fetch data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104116@lists.php.net to get a copy of this message
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!!! */

« previous php.general (#104116) next »