簡體   English   中英

如何鏈接到我網站上除index.php之外的頁面(其他所有頁面均導致錯誤)?

[英]How to link to page other than index.php on my website (all other pages result in error)?

看來這很荒謬,但是從我的站點中,我不斷收到鏈接到除index.php以外的任何頁面的錯誤。 例如,

<p>No thanks, return to the <a href="index.php">home page</a>.</p>

可以正常運行,並在單擊時加載http://example.com/index.php頁面。 但是,兩者

<p>No thanks, return to the <a href="thankyou.php">home page</a>.</p>

<p>No thanks, return to the <a href="http://example.com/thankyou.php">home page</a>.</p>

即使我可以直接在瀏覽器地址欄中輸入地址http://example.com/thankyou.php ,也會導致錯誤*,即使它加載完美。

*錯誤消息是:

Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( ID int NOT NULL AUTO_INCREMENT, PRIMARY KEY(ID), timestamp int NOT NU' at line 1

您應該檢查您是否在thankyou.php腳本或thankyou.php包含或要求的任何腳本中未創建表。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM