Update Records

Learn how to modify a database record in PHP.

We'll cover the following...

As human beings, we often make mistakes or end up changing our minds. A good application is one that is flexible and allows users to modify what’s already been saved in the database.

Now, let’s learn how we can update a project record.

Getting started

These are the steps that we’ll follow:

  • The user will click on the project that they want to edit from the list of projects.
  • They will be redirected to the project form that’s pre-populated with the information of the project they selected.
  • They’ll click the “Update” button, once the project has been modified.
  • They’ll be redirected back to the project list.
...