Bug fixes

This commit is contained in:
Maximilian Heer 2024-01-08 08:27:42 +01:00
parent b104c8a6fc
commit 7810fff20b
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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