Delete Post

This commit is contained in:
2024-07-26 20:56:32 +02:00
parent 0929371c10
commit a515c447e0
14 changed files with 180 additions and 56 deletions
+1
View File
@@ -139,6 +139,7 @@ class Post implements JsonSerializable
$db = Database::getInstance();
$stmt = $db->prepare("DELETE FROM egb_gaestebuch WHERE id = :ID");
$stmt->bindValue(":ID", $this->id);
$stmt->execute();
return $this;
}