Chapter 7. Updating and Deleting Entries
In this chapter, you'll learn how to modify and delete an existing entry. To accomplish this, you need to do the following in your application:
Create administrative links (edit and delete)
Display the administrative links in index.php
Populate the admin form with entry information if you're editing
Modify .htaccess to pass a URL to admin.php
Check whether submitted form values are edits or new entries
Update entries in the entries table
Check whether an entry is marked for deletion
Remove deleted entries from the entries table
Get PHP for Absolute Beginners now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.