Delete Post

This commit is contained in:
Kilian committed 2024-07-26 20:56:32 +02:00
1 parent 0929371c10
commit a515c447e0
14 files changed
+180 -56

No files matched your search

+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;
}