set up php apache on my windows local machine Parts of php are working just fine, but I was havin issue with a 4 loop so I made a really simple one and it doesn't work either. I get a Parse error...here is the code. <?php for ($distance = 50; $distance <= 250; distance += 50) { echo $distance; } ?> Code (markup): I get the following firefox error... Parse error: parse error, expecting `')'' in C:\wamp\www\testing1\dbweb\chap1\pro1\freight.php on line 2
It's obviously a rather small grammatical error hard to spot. Use an advanced IDE development environment for PHP like Zend. It would instantly point out grammatical errors after your typing of a whole line.