diff --git a/php/classes.recipe.php b/php/classes.recipe.php index 7723216..68b4440 100644 --- a/php/classes.recipe.php +++ b/php/classes.recipe.php @@ -23,7 +23,7 @@ function getID($Name){ include $_SESSION["docroot"].'/php/connect.php'; $selectQuery = $mysqli->prepare("SELECT `ID` FROM `Einheit` WHERE `Name` = ?;"); - $selectQuery->bind_param("s", "$Name"); + $selectQuery->bind_param("s", $Name); $selectQuery->execute(); $result = $selectQuery->get_result(); $ID = $result->fetch_assoc();