[thelist] PHP - While Loop
Tim Fountain
tim at incutio.com
Thu Aug 14 10:39:56 CDT 2003
Thursday, August 14, 2003, 4:13:18 PM, Kath wrote:
> Here is the PHP code ...
> $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;
> }
> And this is the output on my PC ...
> Distance Cost
> \n\n"; $distance += 50; } ?>
Can you confirm whether or not PHP files are being parsed correctly?
View the page source and see whether you see your PHP code there or
HTML output.
--
Tim Fountain | Web developer | Incutio Limited | www.incutio.com
email: tim at incutio.com | Tel: +44 8708 700 333 | Fax: +44 7092 181 581
More information about the thelist
mailing list