Getting a Parse error: syntax error, unexpected '}', expecting ',' or '; [closed]

对着背影说爱祢 提交于 2019-12-02 08:38:44
cdhowie

On these two lines:

echo $error. "<br>" }

echo '<div class="error_msg_cont">'. $_SESSION["msg"] .'<div>' }

You need a semicolon before the closing }.

Closing a PHP code block (?>) implies a semicolon, but closing a block of code within a PHP code block (}) does not.

you missed ; on :

echo $error. "<br>" }

and

echo '<div class="error_msg_cont">'. $_SESSION["msg"] .'<div>' }

Actually, the error is self-explained.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!