[thelist] PHP - While Loop
Bill Haenel
mail at webmarketingworx.com
Thu Aug 14 11:38:44 CDT 2003
> $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;
> }
This code works swell on my test system. Must be the trouble is
elsewhere in the script. Howsabout you give us a bit more, like
everything inside the '<?' and '?>'. That will make debugging easier.
BH
More information about the thelist
mailing list