Re: Loops
| From: | Mark | Date: | Wed, 30 Aug 2000 14:39:23 +0000 |
| Subject: | Re: Loops | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14403@lists.php.net to get a copy of this message | ||
Nix the colons after your if and elsif statements
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