[thelist] PHP - While Loop
Damien COLA
damiencola at wanadoo.fr
Sun Aug 17 11:55:27 CDT 2003
Try changing the 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;
}
?>
</table>
with this one:
$distance = 50;
while ($distance <= 250)
{
$ivegotnoclue = $distance / 10;
echo "<tr>\n <td align='right'>$distance</td>\n";
echo " <td align='right'>". $ivegotnoclue ."</td>\n</tr>\n";
$distance += 50;
}
?>
</table>
Just to make sure it isn't related to that part of the code, before
knowing why it doesn't work.
But as the variable says I've got no clue.
Cheers,
Damien COLA
More information about the thelist
mailing list