RE: [PHP] SQL Functions

From: Date: Tue, 10 Aug 2004 15:25:56 +0000
Subject: RE: [PHP] SQL Functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-193289@lists.php.net to get a copy of this message
Hi, > $array = array(); > $results = mysql_query( $sql, DB::connect() ); > while($data = mysql_fetch_array($result)) > { $array[] = $data; } > > return $array; > > No need to loop through $data. Ahh, thanks for that tip. That's much cleaner. -Dan Joseph

« previous php.general (#193289) next »