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