From 97fb7cac604e953fc2af3be06d9138ff011b07c6 Mon Sep 17 00:00:00 2001 From: Krehan Tim Date: Fri, 26 Oct 2018 15:19:44 +0200 Subject: [PATCH] fixed update problem in recipes --- php/classes.recipe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/classes.recipe.php b/php/classes.recipe.php index bc731d8..a4b1ec3 100644 --- a/php/classes.recipe.php +++ b/php/classes.recipe.php @@ -120,7 +120,7 @@ } else{ $mysqli->query("INSERT INTO `Zutat` (`Name`) VALUES ('".ucwords($Zutat["Name"])."')"); - $ingredientID = $mysqli->insert_id; + $ZutatID = $mysqli->insert_id; } $mysqli->query("INSERT INTO `RezeptZutat` (`Rezept`,`Menge`,`Einheit`,`Zutat`) VALUES ('{$ID}','{$Zutat["Amount"]}','{$Zutat["Unit"]}','{$ZutatID}');"); }