fixed recipe import issue

This commit is contained in:
Tim Krehan 2019-06-03 16:02:41 +02:00
parent c65695e986
commit 96a20267f7

View file

@ -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();