Somebody please help me!
Why does this not work?
<?
$on = "<b>ON</b>";
$off = "<b>OFF</b>";
$template = "$state - $i - hello<br>";
$i = 1;
while($i <= 20) {
if ($i % "2") { $state = "$on";}
else { $state = "$off"; }
echo "$template";
$i++;
}
?>
I want the variable in "$template" to get filled by the prcoessing of the while and if... but it don't!
Much appreciate any help! 🙂
thx.
B.