If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.
Post a reply to the thread: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' (PHP)?
Click here to log in
How many letters in the word Rabroad
You may choose an icon for your message from this list
Will turn www.example.com into [URL]http://www.example.com[/URL].
You may rate this thread from 1-star (Terrible) to 5-stars (Excellent) if you wish to do so.
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' (PHP)? Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' on line 5 I am looking through a PHP tutorial and want to try out one of the examples myself. but when I input the code I get the above error. what is wrong with the following code: <?php $crackers = 5; while ($crackers > 0) { echo "Polly wants a cracker!<br>"; $crackers-; } ?>
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' (PHP)?
Forum Rules