Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function delete(Int $id = null)
- {
- $stmt = $this->db->prepare("DELETE FROM tasks (task_title, task_user_id) VALUES (:task_title, :user_id)";);
- $stmt->execute([
- ":task_title" => htmlentities($item->getTitle()),
- ":user_id" => $_SESSION["user_id"]
- ]);
- $res = $stmt->execute();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement