Re: Using two colomns of mysql data as key/value pairs in arrays

From: Date: Mon, 20 Oct 2003 15:25:29 +0000
Subject: Re: Using two colomns of mysql data as key/value pairs in arrays
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-31186@lists.php.net to get a copy of this message
From: "David T-G" <davidtg-php@justpickone.org> > [Actually, maybe I'm just too new at this, but I > can't think of a practical example for which I would loop over $row... > Care to help me out?] How about a dynamic query where you do not know the number of columns that'll be returned? You would not want to use _array() as you'll have the duplicates to worry about / skip over. using _row() or _assoc() and just looping through that will suffice. ---John Holmes...

« previous php.db (#31186) next »