smQQkin Posted July 29, 2009 Share Posted July 29, 2009 I can't figure out why I am getting the following error : Parse error: parse error in C:\wamp\www\Sams\numberdheading1.php on line 5 <?php function numberedHeading ($txt) { static $num_of_calls = 0; $num_of_calls++; echo "<h1>".$num_of_calls." ". $txt."</h1>";6:} numberedHeading ("Widgets"); echo "<p>We build a fine range of widgets.</p>"; numberedHeading ("Doodads"); echo "<p>Finest in the world.</p>"; ?> Any ideas? Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted July 29, 2009 Share Posted July 29, 2009 What's this? 6:} Quote Link to comment Share on other sites More sharing options...
smQQkin Posted July 29, 2009 Author Share Posted July 29, 2009 Good question Mark... I am doing some examples out of "Sams Teach Yourself PHP" and that is the code it gave me. I did remove that chunk of code and it works... Possibly, they made a mistake. Thanks for the help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.