Please help me find the error. thank you! I don't know much about PHP. I pulled a project online and tried wampserver to run it. it seems that syntax errors may fail to be compiled. I haven't seen it for a long time. please help me. thank you.
Parse error: parse error in E: \ PHP \ wamp \ www \ mongodes \ db_mysql_error.php on line 132
error();$dberrno = $this->errno();if($dberrno == 1114) {?>Max onlines reached
Notice: WebShop onlines reached the upper limit.
Sorry, the number of online visitors has reached the upper limit. Please wait for someone else going offline or visit us in idle hours.
|
|
Mysql error!
Time:
Script:
SQL:
Error:
Errno:
|
|
It seems to be the curly braces in the last and third rows. it is not true if I have removed the brackets ..
Reply to discussion (solution)
Remove the html section in the middle to see if any error is reported.
If no error is reported, find the cause in the html section.
One possible reason is that your PHP does not enable the short tag function (short tags)
The viewer is quite strange.
Two html files, including public headers and tails, can be written, but the output display is different.
In addition, it is strange to write the if else statement.
129 rows Change
129 rows Change
It's useless to change it.
129 rows Change
error();$dberrno = $this->errno();if($dberrno == 1114) {?>Max onlines reached
Xxxxx Exit can be considered. it is useless here.
Notice: WebShop onlines reached the upper limit.
Sorry, the number of online visitors has reached the upper limit. Please wait for someone else going offline or visit us in idle hours.
|
|
Mysql error!
Time:
Script:
SQL:
Error:
Errno:
|
|
Now I have deleted exit and reported Parse error: parse error in E: \ PHP \ wamp \ www \ mongodes \ db_mysql_error.php on line 113.
After the short label is changed to the complete label
Solved. thank you.