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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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++;
    }
?>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux