Re: [PHP] MySQL fetch data

2002-06-27 Thread Jason Wong
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

RE: [PHP] MySQL fetch data

2002-06-27 Thread John Holmes
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

Re: [PHP] MySQL fetch data

2002-06-27 Thread Chris Hewitt
Jefferson, I am wondering why you would want to do this. If you get the sql statement to order the rows the way you need to use them then there should not be a need to refer back to earlier rows. I sometimes need to know if one field has the same value as in the previous record, so I keep

Re: [PHP] MySQL fetch data

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 04:20 AM, Jefferson Cowart wrote: 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