Fwd: Re: [PHP] Loops

From: Date: Wed, 30 Aug 2000 14:38:07 +0000
Subject: Fwd: Re: [PHP] Loops
Groups: php.general 
Request: Send a blank email to php-general+get-14401@lists.php.net to get a copy of this message
Date: Wed, 30 Aug 2000 10:04:48 -0400 To: Alan Todd <Alan.Todd@InfoAve.Net> From: Mark <mja@lightband.com> Subject: Re: [PHP] Loops You may need to remove the $row from the line below: while($myrow = @pg_fetch_array ($result, $row)) so you have this: while($myrow = @pg_fetch_array ($result)) Hope that helps Mark At 09:55 AM 8/30/00 -0400, you wrote:
here is what i have this is what i am trying to do <?php while($myrow = @pg_fetch_array ($result, $row)) {
    if ($row['show_mail'] == 1):
        ?>
       do statement for above
        <?
    endif;
} ?> <? elseif ($row['show_mail'] == 0): ?> do this for above <?
    endif;
} ?> <? elseif ($row['show_url] == 0): ?> do this <?
    endif;
} ?> no work either i get an infinite loop or parse errors Please Help Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#14401) next »