kleine constant Fehler geändert

This commit is contained in:
aschwarz 2023-02-27 11:36:46 +01:00
parent 09ee4a8728
commit a03aba2034

View File

@ -169,7 +169,7 @@ echo "
or die ("Cannot execute query");
echo "<select size=\"4\" name=\"Dozent[]\" multiple>"; // In Dozent[] werden die ausgew&auml;hlen Values gespeichert: Bsp. [1], [3], [4]
while ($row = $result->fetch_array()){
echo "<option value=\"".$row[doz_nr]."\">".$row['doz_name'].",&nbsp;".$row['doz_vorname'].",&nbsp;&nbsp;&nbsp;".$row['doz_titel']."&nbsp;&nbsp;&nbsp;</option>\n";
echo "<option value=\"".$row['doz_nr']."\">".$row['doz_name'].",&nbsp;".$row['doz_vorname'].",&nbsp;&nbsp;&nbsp;".$row['doz_titel']."&nbsp;&nbsp;&nbsp;</option>\n";
}
echo "</select>";
echo "
@ -257,7 +257,7 @@ echo "
break;
case "erfassen":
if ($_POST[I] == "" and $_POST[R] == "" and $_POST[F] == "" and $_POST[S] == ""){ // mind. 1 Zweig muss angegeben werden. Getrennt durch and
if ($_POST['I'] == "" and $_POST['R'] == "" and $_POST['F'] == "" and $_POST['S'] == ""){ // mind. 1 Zweig muss angegeben werden. Getrennt durch and
echo "
<html>
<head>
@ -319,7 +319,7 @@ echo "
exit;
}
if ($_POST[FPR_Nr] == "" or $_POST[art] == "" or $_POST[Bezeichnung] == "" or $_POST[max_t] == "" or $_POST[Dozent] == "" or $_POST[jahr] == ""){
if ($_POST['FPR_Nr'] == "" or $_POST['art'] == "" or $_POST['Bezeichnung'] == "" or $_POST['max_t'] == "" or $_POST['Dozent'] == "" or $_POST['jahr'] == ""){
echo"
<html>
<head>
@ -381,7 +381,7 @@ echo"
exit;
} // Ende wenn Pflichtfelder nicht ausgef&uuml;llt wurden
if ($_POST[art] == "SK" AND $_POST[niveau] == ""){
if ($_POST['art'] == "SK" AND $_POST['niveau'] == ""){
echo"
<html>
<head>
@ -554,7 +554,7 @@ $sql = $db->query("INSERT INTO skik_kurs ( FPRNr
$sql_id = $db->query("select id from skik_kurs where FPRNr=\"". $_POST['FPR_Nr']."\" and Jahr = \"". $_POST['jahr']."\"");
$id = $sql_id->fetch_array();
$Dozent = $_POST[Dozent]; // Vom Formular gesendetes Objekt in Variable schreiben
$Dozent = $_POST['Dozent']; // Vom Formular gesendetes Objekt in Variable schreiben
for ($i=0;$i<sizeof($Dozent);$i++) { // Schleife, der die Dozenten aufaddiert bis alle ausgew&auml;hlen abgearbeitet sind.
$sql = $db->query("INSERT INTO skik_doz ( id , doz_nr )VALUES ( '$id[id]', '$Dozent[$i]' )");
@ -620,4 +620,4 @@ echo "
</body>
</html>";
} // Ende Action Script
?>
?>