mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-27 15:40:00 +01:00
done with preparing list sql statements
This commit is contained in:
parent
8515304423
commit
04c9776a65
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@
|
||||||
function check($id, $status){
|
function check($id, $status){
|
||||||
include $_SESSION["docroot"].'/config/config.php';
|
include $_SESSION["docroot"].'/config/config.php';
|
||||||
include $_SESSION["docroot"].'/php/connect.php';
|
include $_SESSION["docroot"].'/php/connect.php';
|
||||||
$mysqli->query("UPDATE `Einkauf` SET `Erledigt` = $status WHERE `Einkauf`.`ID` = $id");
|
$updateQuery = $mysqli->prepare("UPDATE `Einkauf` SET `Erledigt` = $status WHERE `Einkauf`.`ID` = ?");
|
||||||
|
$updateQuery->bind_param("s", $id);
|
||||||
|
$updateQuery->execute();
|
||||||
$mysqli->close();
|
$mysqli->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue