Delete Post
This commit is contained in:
1 parent
0929371c10
commit
a515c447e0
14 files changed
+180
-56
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user