Ok i am a newbie at php, so i bought a book to learn and this is the actuall code in the book. The proble is that i am getting a "Parse error: syntax error, unexpected $end in tests/act3.php on line 7" error. Can some one explain why this doesn't work and/or if there is just a typo in the book i bought? (there are more codes in this book that don't work. i think it has to do with my version of php. my host is running php 4.4 and the book is for php 5. any advice?)
<?php
$num = 1;
while ($num <= 49) {
echo "$num";
echo "<br>";
$num += 2;
?>