It seems absurdly basic, but I keep getting errors linking to any page other than index.php from within my site. 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. 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.
*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
You should check that you are not creating a table in your thankyou.php script or in any script that thankyou.php includes or requires.