Search⌘ K
AI Features

Remove Records

Explore how to delete records in a PHP CRUD application connected to MySQL. Learn to add a delete button, handle form submissions, and write secure delete functions to remove tasks from the database effectively.

As in the previous lesson, we’ll learn how to remove a record from the database. At the end of the lesson, our assignment will be to write code to delete a project.

The main keyword for this lesson is DELETE.

Getting started

Below is the user story for this feature:

Title: Deleting a task

Story
As a user, we’d want to see a “Delete” button next to the task list, so that we could delete a task from the database.

Acceptance Criteria
Scenario: The task that is selected for deletion should be removed from ...