From 7810fff20bf276ed914fa064d85f8810b3a7b0f7 Mon Sep 17 00:00:00 2001 From: Max Heer Date: Mon, 8 Jan 2024 08:27:42 +0100 Subject: [PATCH] Bug fixes --- Model/EnthaeltModel.php | 2 +- Model/InhaltsstoffModel.php | 4 ++-- Model/TagesplanModel.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Model/EnthaeltModel.php b/Model/EnthaeltModel.php index 8b2c907..62f79cd 100644 --- a/Model/EnthaeltModel.php +++ b/Model/EnthaeltModel.php @@ -52,7 +52,7 @@ public function deleteEnthaelt($id){ $pdo=$this->linkDB(); $params = array(); - $sql = "DELETE FROM Enthaelt WHERE id=:id"; + $sql = "DELETE FROM Enthaelt WHERE id=:id;"; $params[":id"] = $id; try{ $stmt = $pdo->prepare($sql); diff --git a/Model/InhaltsstoffModel.php b/Model/InhaltsstoffModel.php index 70d5b2f..a8e3bd0 100644 --- a/Model/InhaltsstoffModel.php +++ b/Model/InhaltsstoffModel.php @@ -7,7 +7,7 @@ public function getInhaltsstoff(){ $pdo=$this->linkDB(); - $sql = "SELECT * FROM Inhaltsstoff"; + $sql = "SELECT * FROM Inhaltsstoff;"; try{ $stmt = $pdo->prepare($sql); $stmt->execute(); @@ -49,7 +49,7 @@ public function deleteInhaltsstoff($id){ $pdo=$this->linkDB(); $params = array(); - $sql = "DELETE FROM Inhalsstoff WHERE id=:id"; + $sql = "DELETE FROM Inhalsstoff WHERE id=:id;"; $params[":id"] = $id; try{ $stmt = $pdo->prepare($sql); diff --git a/Model/TagesplanModel.php b/Model/TagesplanModel.php index aa89ad1..88f8a07 100644 --- a/Model/TagesplanModel.php +++ b/Model/TagesplanModel.php @@ -7,7 +7,7 @@ public function getTagesplan(){ $pdo=$this->linkDB(); - $sql = "SELECT * FROM Tagesplan"; + $sql = "SELECT * FROM Tagesplan;"; try{ $stmt = $pdo->prepare($sql); $stmt->execute(); @@ -49,7 +49,7 @@ public function delteTagesplan($id){ $pdo=$this->linkDB(); $params = array(); - $sql = "DELETE FROM Tagesplan WHERE id=:id"; + $sql = "DELETE FROM Tagesplan WHERE id=:id;"; $params[":id"] = $id; try{ $stmt = $pdo->prepare($sql);