From 7b31a444b83f2b3be89964b8db38e6a103b545a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Runden?= Date: Tue, 3 Jan 2023 18:38:08 +0100 Subject: [PATCH] doit --- update.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 = "";