Can anyone please tell me what's wrong with this PHP code?

bill

New member
It's supposed to count to ten (1 2 3 4 5 6 7 8 9 10) but it just...doesn't.

<p>
<?php
$count = 1;
while ($count <= 10) {
echo "$count ";
++$count;
}
?>
</p>
It's a no go on the $count++. ++$count means $count = $count + 1. I tried your suggestion in case though, thank you for the help!
 
Back
Top