From the course: Hands-On Introduction: PHP

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Extend the people database

Extend the people database - PHP Tutorial

From the course: Hands-On Introduction: PHP

Extend the people database

- Another crucial function of working with a database is modifying tables. So for this video, we're going to edit and delete records. Now a lot of this code has been provided and updated. In the interest of time, We're going to focus on two core functions: deleting a record from the database, and updating or editing a record from the database. Notice that there are some new files: delete, which only needs the delete functionality. Here we have the database connection information and the same thing goes for edit. And the form has been provided for us here where we need to retrieve the data but all of the editing functionality needs to be added. And finally, there is also a new row on our table that includes links to edit and delete records. So this is what our table looks like now and we're going to fill in the blanks for edit and delete. Feel free to code along with me in your own code space. So let's start with the delete…

Contents