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

From: Date: Mon, 20 Oct 2003 13:57:07 +0000
Subject: Re: Using two colomns of mysql data as key/value pairs in arrays
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-31159@lists.php.net to get a copy of this message
(1) additional overhead (2) bad script-logic -- Jon Kriek http://phpfreaks.com "Richard Hutchins" <Richard.Hutchins@Getingeusa.com> wrote in message news:1EA7D3AE70ACD511BE6D006097A78C1E033C94EE@USROCEXC... > Chris (Jon Kriek too, I guess), > > Curious as to why you say you avoid mysql_fetch_array() like the plague. I > use it frequently and am wondering if there is something wrong/not secure > when using it or if there is a huge amount of overhead associated with its > use. > > Thanks, > Rich > > > -----Original Message----- > > From: Chris Boget [mailto:chris@wild.net] > > Sent: Monday, October 20, 2003 9:42 AM > > To: Ignatius Reilly; php-db@lists.php.net; Devon > > Subject: Re: [PHP-DB] Using two colomns of mysql data as > > key/value pairs > > in arrays > > > > > > > mysql_fetch_array( $result ) > > > > Actually, for an associative array (which the OP had made reference > > to), you use mysql_fetch_assoc(). > > I avoid mysql_fetch_array() like the plague unless there is a very > > specific need. > > > > Chris > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.db (#31159) next »