求幫忙查錯,謝謝

來源:互聯網
上載者:User
各位好,我對PHP不太懂,在網上拉了一個項目,試用wampserver啟動並執行時候,貌似有語法錯誤編譯不通過。看了半天沒看出來,煩勞各位幫個小忙,謝謝。

Parse error: parse error in E:\PHP\wamp\www\includes\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:



貌似是在倒數第三行的花括弧這,我把括弧去掉了也不對。。


回複討論(解決方案)

先把中間html的部分去掉看看是否還有報錯。
如果去掉沒有報錯,就在html那部分找原因。

一個可能的原因是你的PHP沒有開啟短標籤功能( short tags)

看者挺怪的

兩個html, 有公用的頭部 尾部等,可以寫一個的,只是輸出顯示不一樣罷了
另外,寫if else語句看的也很怪






xxxxx






129 行的 改為

xxxxx exit可以考慮不用,在這裡沒什麼大用

129 行的 改為
改了也沒用啊

129 行的 改為

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:



我現在把後面的exit刪掉了,報Parse error: parse error in E:\PHP\wamp\www\includes\db_mysql_error.php on line 113

把短標籤改成完整標籤之後,之前所有的

解決了 謝謝各位

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.