Loops
| From: | Alan Todd | Date: | Wed, 30 Aug 2000 13:55:56 +0000 |
| Subject: | Loops | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14396@lists.php.net to get a copy of this message | ||
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