diff --git a/update.php b/update.php index ba5359d..00cc76a 100644 --- a/update.php +++ b/update.php @@ -130,9 +130,13 @@ if(isset($_POST["id"]) && !empty($_POST["id"])){ $row = mysqli_fetch_array($result, MYSQLI_ASSOC); // Retrieve individual field value - $name = $row["name"]; + $vokabel = $row["vokabel"]; $stammform = $row["stammform"]; $art = $row["art"]; + $flexion = $row["flexion"]; + $uebersetzung = $row["uebersetzung"]; + $lektion = $row["lektion"]; + $kommentar = $row["kommentar"]; } else{ // URL doesn't contain valid id. Redirect to error page header("location: error.php"); @@ -193,7 +197,6 @@ if(isset($_POST["id"]) && !empty($_POST["id"])){ - $vokabel = $stammform = $art = $flexion = $uebersetzung = $lektion =$kommentar = "";