简体   繁体   English

如何链接到我网站上除index.php之外的页面(其他所有页面均导致错误)?

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

It seems absurdly basic, but I keep getting errors linking to any page other than index.php from within my site. 看来这很荒谬,但是从我的站点中,我不断收到链接到除index.php以外的任何页面的错误。 For example, 例如,

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

works perfectly fine and loads the http://example.com/index.php page when clicked. 可以正常运行,并在单击时加载http://example.com/index.php页面。 However, both 但是,两者

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

and

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

result in an error* when clicked, even though I can go enter the address http://example.com/thankyou.php directly in a browser address bar and it loads perfectly. 即使我可以直接在浏览器地址栏中输入地址http://example.com/thankyou.php ,也会导致错误*,即使它加载完美。

*The error message is: *错误消息是:

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