mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-23 22:30:41 +01:00
fixed update problem in recipes
This commit is contained in:
parent
50d09d0373
commit
97fb7cac60
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$mysqli->query("INSERT INTO `Zutat` (`Name`) VALUES ('".ucwords($Zutat["Name"])."')");
|
$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}');");
|
$mysqli->query("INSERT INTO `RezeptZutat` (`Rezept`,`Menge`,`Einheit`,`Zutat`) VALUES ('{$ID}','{$Zutat["Amount"]}','{$Zutat["Unit"]}','{$ZutatID}');");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue