Hi,
was steht denn in check.php und connect.php?
check.php überprüft ob man angemeldet ist:
<?php
session_start();
if (!isset($_SESSION['angemeldet']) || !$_SESSION['angemeldet']) {
header('Location: http://[...]/training/login.php?error=2');
}
else {
$angemeldet = yes;}
?>
Und connect.php verbindet zur Datenbank (funktioniert auch, mit anderen Skripts getestet):
<?php
mysql_connect("localhost",
"username","passwort") or die
("Keine Verbindung möglich.");
mysql_select_db("d872lf7g") or die
("Die Datenbank existiert nicht.");
?>
Vielen Dank,
Christian