Ismaek Know it all
New member
Am trying to get my PHP Loop to work but for some reason am not able to get it to work.. am only a bigginer Please Some1 help me fix the code!
*my Loop Should fill the Array with the numbers 1 through 100...
<?php
$Count=0;
While ($Count > 100) {
$Number[] = $Count;
++$Count;
foreach ($Count as $CurNum)
echo "<p>$CurNum</p>";
}
?>
CaniDog I try what you said and it doesn't work and i get what your saying but According to my Teacher I need to fix the code and it should work so far No Luck getting it to work.. but thanks 4 ur help!
*my Loop Should fill the Array with the numbers 1 through 100...
<?php
$Count=0;
While ($Count > 100) {
$Number[] = $Count;
++$Count;
foreach ($Count as $CurNum)
echo "<p>$CurNum</p>";
}
?>
CaniDog I try what you said and it doesn't work and i get what your saying but According to my Teacher I need to fix the code and it should work so far No Luck getting it to work.. but thanks 4 ur help!