Kleine Fehlerkorrekturen

This commit is contained in:
aschwarz
2023-04-14 11:57:33 +02:00
parent 732e5ee033
commit e72f716478
12 changed files with 104 additions and 104 deletions

View File

@ -145,7 +145,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 "
@ -233,7 +233,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>
@ -295,7 +295,7 @@ echo "
exit;
}
if ($_POST[FPR_Nr] == ""or $_POST[Bezeichnung] == "" or $_POST[max_t] == "" or $_POST[Dozent] == "" or $_POST[jahr] == ""){
if ($_POST['FPR_Nr'] == ""or $_POST['Bezeichnung'] == "" or $_POST['max_t'] == "" or $_POST['Dozent'] == "" or $_POST['jahr'] == ""){
echo"
<html>
<head>
@ -462,7 +462,7 @@ $sql = $db->query("INSERT INTO pros_proseminar ( FPRNr
$sql_id = $db->query("select id from pros_proseminar 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 pros_doz ( id , doz_nr )VALUES ( '$id[id]', '$Dozent[$i]' )");
@ -528,4 +528,4 @@ echo "
</body>
</html>";
} // Ende Action Script
?>
?>