After adding data to custom tables, website administrators are likely to delete some of these entries down the road. Since we have been building an interface to view, create, and modify database entries, the task of selecting items to be deleted also falls under our responsibility. Thankfully, we can easily expand the existing bug display list to add checkboxes for selection and a button to trigger the actual deletion.
This recipe shows how to add deletion capabilities to our bug tracking system.
You should have already followed the Inserting and updating records in custom tables recipe to have an existing framework to augment. Alternatively, you can get the resulting code (
Chapter 8/ch8-bug-tracker/ch8-bug-tracker-v4.php) from the code bundle and rename the file