RE: [PHP] Logic problem

From: Date: Tue, 20 Apr 2004 15:55:00 +0000
Subject: RE: [PHP] Logic problem
Groups: php.general 
Request: Send a blank email to php-general+get-184018@lists.php.net to get a copy of this message
On 20 April 2004 16:44, Alex Hogan wrote: > foreach ( $array1 as $flds ) { > if ( $start ) { > $query .= $flds; > $start = false; > } else { > $query .= ", " . $flds; > > } > } $query .= implode(", ", $array1); Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#184018) next »