diff --git a/admin/index.php b/admin/index.php index aebb9dc..5a3039c 100755 --- a/admin/index.php +++ b/admin/index.php @@ -182,7 +182,7 @@ echo " exit; } -if ($_POST['user'] != $row[user]) { +if ($_POST['user'] != $row['user']) { echo" @@ -248,7 +248,7 @@ exit; } -if (md5($_POST['passwort']) != $row[passwort]){ //verschlüsseltes Passwort überprüfen +if (md5($_POST['passwort']) != $row['passwort']){ //verschlüsseltes Passwort überprüfen echo " @@ -314,7 +314,7 @@ exit; } setcookie("user_admin",""); -setcookie("user_admin",$row[user]); +setcookie("user_admin",$row['user']); echo " diff --git a/admin/jahrgang.php b/admin/jahrgang.php index d028b83..f99d0cc 100755 --- a/admin/jahrgang.php +++ b/admin/jahrgang.php @@ -50,7 +50,7 @@ echo" or die ("Cannot execute query"); echo "

"; echo " @@ -135,4 +135,4 @@ setcookie("semester",$_POST['semester']); "; } // Ende Action script -?> \ No newline at end of file +?> diff --git a/stud/liste.php b/stud/liste.php index 445dd3f..8560cdc 100755 --- a/stud/liste.php +++ b/stud/liste.php @@ -28,7 +28,7 @@ $anm_schluss = $db->query("SELECT DATE_Format(spt_einsicht, '%Y-%m-%d')AS datum, $row_schluss = $anm_schluss->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses $a = strtotime ($heute_format); //Umrechnung des Fristgrenztages in eine Zahl -$b = strtotime ($row_schluss[datum]); // Umrechnung des Beginndatums in eine Zahl +$b = strtotime ($row_schluss['datum']); // Umrechnung des Beginndatums in eine Zahl if ($a < $b){ echo " @@ -99,7 +99,7 @@ exit; $psn_abg = $db->query("SELECT uid FROM spt_wunsch WHERE uid=\"$uid1\""); $abgegeben = $psn_abg->fetch_array(); -if ($abgegeben[uid] == ""){ +if ($abgegeben['uid'] == ""){ echo " @@ -269,4 +269,4 @@ echo" "; -?> \ No newline at end of file +?>