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}');"); }