public function deletePost() { $database = new Database(); $id = (int) $this->id; $dml = sprintf("delete from post where id = %d limit 1", $id); return $database->executeDml($dml); }
public function delete($id) { $db = new Database(); $id = (int) $id; $dml = sprintf("DELETE FROM styles WHERE id = %d", $id); return $db->executeDml($dml); }