Sargis Andreyan Sargis Andreyan - 1 year ago 101
PHP Question

What is wrong in this code, it returns sytax error

echo $_GET['errormsg']

What is wrong in this PHP code. It returns the following error:

Parse error: syntax error, unexpected '}', expecting ',' or ';' in *************************** on line 47

Answer Source

Your ; is placed after }. The ; should precede the }.

Try that :

    if(!empty($_GET['errormsg'])){echo $_GET['errormsg'];}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download