Sry für DBLPost
Ich hab grad in den Serverlogs geschaut und das hier gefunden:
[Sat Oct 08 18:43:08 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function DoSQL() on a non-object in C:\\xampp\\htdocs\\inc\\suche.php on line 5, referer:
http://localhost:81/index.php?p=suche
[Sat Oct 08 18:43:09 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function DoSQL() on a non-object in C:\\xampp\\htdocs\\inc\\suche.php on line 5, referer:
http://localhost:81/index.php?p=suche
[Sat Oct 08 18:43:11 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function DoSQL() on a non-object in C:\\xampp\\htdocs\\inc\\suche.php on line 5, referer:
http://localhost:81/index.php?p=suche
[Sat Oct 08 18:43:12 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function DoSQL() on a non-object in C:\\xampp\\htdocs\\inc\\suche.php on line 5, referer:
http://localhost:81/index.php?p=suche
[Sat Oct 08 21:06:27 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/favicon.ico
[Sat Oct 08 21:06:27 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/favicon.ico
[Sat Oct 08 21:06:27 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/favicon.ico
[Sat Oct 08 21:06:35 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function DoSQL() on a non-object in C:\\xampp\\htdocs\\inc\\suche.php on line 5, referer:
http://localhost:81/
[Sat Oct 08 21:06:36 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function DoSQL() on a non-object in C:\\xampp\\htdocs\\inc\\suche.php on line 5, referer:
http://localhost:81/
[Sat Oct 08 21:06:36 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function DoSQL() on a non-object in C:\\xampp\\htdocs\\inc\\suche.php on line 5, referer:
http://localhost:81/
[Sat Oct 08 21:06:36 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function DoSQL() on a non-object in C:\\xampp\\htdocs\\inc\\suche.php on line 5, referer:
http://localhost:81/
//EDIT: Ich habs hingekriegt: Ich musste die Class.php Datei Überall includen, wo ich die Befehle verwende.
Gibts da keine bessere Lösung? Muss ich wirklich in JEDER datei, wo ich $DbCon verwende die Verbindung deklarieren?