[thelist] PHP - While Loop
Kelly Hallman
khallman at wrack.org
Thu Aug 14 12:39:50 CDT 2003
Have you tried using <?php instead of <? ... Your local installation
probably has the abreviated syntax disabled. <?php should work on both.
On Thu, 14 Aug 2003, Kath wrote:
> At 09:11 AM 8/14/2003 -0700, you wrote:
> >give us the "entire" test file that you have...
>
> <?
> $distance = 50;
> while ($distance <= 250 )
> {
> echo "<tr>\n <td align='right'>$distance</td>\n";
> echo " <td align='right'>". $distance / 10 ."</td>\n</tr>\n";
> $distance += 50;
> }
> ?>
--
Kelly Hallman
http://wrack.org/
More information about the thelist
mailing list