Re: URGET HELP : Logic Help - for first record do_this for each record after do_that

From: Date: Fri, 25 Oct 2002 19:11:05 +0000
Subject: Re: URGET HELP : Logic Help - for first record do_this for each record after do_that
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-22704@lists.php.net to get a copy of this message
on 10/25/02 2:53 PM, Aaron Wolski at aaronjw@martekbiz.com appended the following bits to my mbox: > Basically I need to pull some records out of a database and for the > first record do_this logic and for each record after in the array > do_something_else logic. Psuedo code: $first_record = 'yes'; while (result = something) { if ($first_record == 'yes') { do_something(); $first_record == 'no'; } else { do_something_else(); } } HTH. Sincerely, Paul Burney <http://paulburney.com/> <?php while ($self != "asleep") { $sheep_count++; } ?>

« previous php.db (#22704) next »