Hi,
<?php
include('settings/main.inc.php'); # Wenn ich das nicht angebe, kommt ne Fehlermeldung
Und *weil* du es "angibst", damit also die include-Anweisung auskommentierst und deaktivierst, kommen im folgenden die Fehler:
Notice: Undefined variable: guestbooktable in C:\pfad\content\guestbook.php on line 12
Natuerlich, die stand ja im include-File. Bindest du das nicht ein, ist die Variable auch nicht bekannt.
Fehler: 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 'WHERE titel!='' ORDER BY zeit LIMIT 0,10' at line 3
Und ohne diese Variable steht in deiner Queru auch kein Tabellenname drin.
MfG ChrisB