Shemphang Posted September 12, 2013 Share Posted September 12, 2013 Could somebody check and fix the error pls? Error: Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting ',' or ';' in C:\wamp\www\SHP\php_echo_print.php on line 12 code: <!DOCTYPE html > <html > <head> <title>php_echo_print</title> </head> <body> <?php echo "<h2> PHP is fun! </h2>"; echo "Hello World! <br>"; echo "I'm about to learn PHP!<br>" echo "This", " string", " was", " made", " with multiple parameters."; ?> </body> </html> Link to comment https://forums.phpfreaks.com/topic/282104-parse-error/ Share on other sites More sharing options...
Barrikor Posted September 12, 2013 Share Posted September 12, 2013 expecting ',' or ';' normally means that you missed a ; in the line before it tells you. look at the end of: echo "I'm about to learn PHP!<br>" Link to comment https://forums.phpfreaks.com/topic/282104-parse-error/#findComment-1449253 Share on other sites More sharing options...
cataiin Posted September 12, 2013 Share Posted September 12, 2013 Forgot ; at the end of line 11. Edit: too late. Link to comment https://forums.phpfreaks.com/topic/282104-parse-error/#findComment-1449254 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.