mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-23 22:30:41 +01:00
fixed recipe import issue
This commit is contained in:
parent
c65695e986
commit
96a20267f7
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
||||||
function getID($Name){
|
function getID($Name){
|
||||||
include $_SESSION["docroot"].'/php/connect.php';
|
include $_SESSION["docroot"].'/php/connect.php';
|
||||||
$selectQuery = $mysqli->prepare("SELECT `ID` FROM `Einheit` WHERE `Name` = ?;");
|
$selectQuery = $mysqli->prepare("SELECT `ID` FROM `Einheit` WHERE `Name` = ?;");
|
||||||
$selectQuery->bind_param("s", "$Name");
|
$selectQuery->bind_param("s", $Name);
|
||||||
$selectQuery->execute();
|
$selectQuery->execute();
|
||||||
$result = $selectQuery->get_result();
|
$result = $selectQuery->get_result();
|
||||||
$ID = $result->fetch_assoc();
|
$ID = $result->fetch_assoc();
|
||||||
|
|
Loading…
Reference in a new issue