Kleine Fehlerkorrekturen

This commit is contained in:
aschwarz 2023-04-14 11:57:49 +02:00
parent 7055693182
commit 4f3a51daf1
3 changed files with 8 additions and 8 deletions

View File

@ -182,7 +182,7 @@ echo "
exit; exit;
} }
if ($_POST['user'] != $row[user]) { if ($_POST['user'] != $row['user']) {
echo" echo"
<html> <html>
<head> <head>
@ -248,7 +248,7 @@ exit;
} }
if (md5($_POST['passwort']) != $row[passwort]){ //verschl&uuml;sseltes Passwort &uuml;berpr&uuml;fen if (md5($_POST['passwort']) != $row['passwort']){ //verschl&uuml;sseltes Passwort &uuml;berpr&uuml;fen
echo " echo "
<html> <html>
<head> <head>
@ -314,7 +314,7 @@ exit;
} }
setcookie("user_admin",""); setcookie("user_admin","");
setcookie("user_admin",$row[user]); setcookie("user_admin",$row['user']);
echo " echo "
<meta http-equiv=\"refresh\" content=\"0; URL=hauptframe.htm\"> <meta http-equiv=\"refresh\" content=\"0; URL=hauptframe.htm\">

View File

@ -50,7 +50,7 @@ echo"
or die ("Cannot execute query"); or die ("Cannot execute query");
echo "<p align=\"center\"><select size=\"5\" name=\"jahr\">"; echo "<p align=\"center\"><select size=\"5\" name=\"jahr\">";
while ($row = $result->fetch_array()){ while ($row = $result->fetch_array()){
echo "<option value='$row[Jahrgang]'";if ($row[Jahrgang] == $jahrgang){echo " selected";} echo ">".$row['Jahrgang']."&nbsp;&nbsp;</option>\n"; echo "<option value='$row[Jahrgang]'";if ($row['Jahrgang'] == $jahrgang){echo " selected";} echo ">".$row['Jahrgang']."&nbsp;&nbsp;</option>\n";
} }
echo "</select>"; echo "</select>";
echo " echo "
@ -135,4 +135,4 @@ setcookie("semester",$_POST['semester']);
"; ";
} // Ende Action script } // Ende Action script
?> ?>

View File

@ -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&auml;hlten Kurses $row_schluss = $anm_schluss->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gew&auml;hlten Kurses
$a = strtotime ($heute_format); //Umrechnung des Fristgrenztages in eine Zahl $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){ if ($a < $b){
echo " echo "
@ -99,7 +99,7 @@ exit;
$psn_abg = $db->query("SELECT uid FROM spt_wunsch WHERE uid=\"$uid1\""); $psn_abg = $db->query("SELECT uid FROM spt_wunsch WHERE uid=\"$uid1\"");
$abgegeben = $psn_abg->fetch_array(); $abgegeben = $psn_abg->fetch_array();
if ($abgegeben[uid] == ""){ if ($abgegeben['uid'] == ""){
echo " echo "
<html> <html>
@ -269,4 +269,4 @@ echo"
</html>"; </html>";
?> ?>