[英]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.