From 5e9c9cf19de1c3618131840d70cbe617b381dbe3 Mon Sep 17 00:00:00 2001 From: aschwarz Date: Mon, 24 Apr 2023 08:08:25 +0200 Subject: [PATCH] Kleinere Fehlerkorrekturen --- admin/doz_bearb.php | 2 +- admin/mailadressen.php | 20 ++++++++++---------- admin/noteneingabe_admin.php | 10 +++++----- admin/stud_neubelegen.php | 20 ++++++++++---------- doz/export_doz.php | 2 +- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/admin/doz_bearb.php b/admin/doz_bearb.php index 78beceb..7fac01a 100755 --- a/admin/doz_bearb.php +++ b/admin/doz_bearb.php @@ -123,7 +123,7 @@ echo " break; case "dozbearb": -setcookie("ck_dozbe",$_POST[dozbe]); +setcookie("ck_dozbe",$_POST['dozbe']); $db = dbconnect(); $bearb_doz = $db->query ("Select doz_uid, doz_name, doz_vorname, doz_titel, doz_mail, doz_strasse, doz_plz, doz_ort, doz_tel, doz_pwd FROM doz WHERE doz_nr=\"". $_POST['dozbe']."\""); diff --git a/admin/mailadressen.php b/admin/mailadressen.php index 88b8893..c927ee9 100755 --- a/admin/mailadressen.php +++ b/admin/mailadressen.php @@ -170,7 +170,7 @@ function initForm() break; case "ausgabe1": - if ($_POST[I] == "" and $_POST[R] == "" and $_POST[F] == "" and $_POST[S] == "" and $_POST[D] == "" ){ // mind. 1 Zweig muss angegeben werden. Getrennt durch and + if ($_POST['I'] == "" and $_POST['R'] == "" and $_POST['F'] == "" and $_POST['S'] == "" and $_POST['D'] == "" ){ // mind. 1 Zweig muss angegeben werden. Getrennt durch and echo " @@ -357,7 +357,7 @@ exit; } */ -$year = $_POST[jahr]; +$year = $_POST['jahr']; for ($i=0;$iquery("SELECT bezeichnung FROM pros_proseminar where id=\"". $_POST['ausw_ausg']."\""); $pros = $sel_pros->fetch_array(); -setcookie ("ck_prosid", $_POST[ausw_ausg]); //ausgewählte Pros.ID wird in Cookie gespeichert +setcookie ("ck_prosid", $_POST['ausw_ausg']); //ausgewählte Pros.ID wird in Cookie gespeichert echo " @@ -217,9 +217,9 @@ echo " $result1 = $db->query("SELECT * FROM pros_ergebnis where uid=\"$row[uid]\""); $row1 = $result1->fetch_array(); - if($row1[Note] != ''){ - $vorkomma = substr($row1[Note], 0,1); - $nachkomma = substr($row1[Note], 2,1); + if($row1['Note'] != ''){ + $vorkomma = substr($row1['Note'], 0,1); + $nachkomma = substr($row1['Note'], 2,1); }else{ $vorkomma = ""; $nachkomma = ""; @@ -493,7 +493,7 @@ echo" } */ - if ($vorhanden[uid] == ""){ + if ($vorhanden['uid'] == ""){ $sql = $db->query ("INSERT INTO pros_ergebnis( uid, diff --git a/admin/stud_neubelegen.php b/admin/stud_neubelegen.php index fd78039..fac1440 100755 --- a/admin/stud_neubelegen.php +++ b/admin/stud_neubelegen.php @@ -84,7 +84,7 @@ echo "