From the course: PHP with MySQL Essential Training: 2 Build a CMS

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Challenge: Build admin management

Challenge: Build admin management

- [Instructor] It's time for another challenge assignment. Your challenge is to create pages in the staff area to manage the contents of the admins table we just created. Much of this challenge is a review of work that we did in part one of this course. There, we created pages to manage the contents of the subjects and pages tables by using PHP to perform similar CRUD operations: create, read, update, and delete. You'll find yourself writing code similar to this over and over when developing web applications. And you should have these skills ready whenever they're needed. Let's walk through the details of the admin management. For the admin CRUD pages, you're going to put them all in a single directory called admins, that'll keep them organized, and you're going to have five pages. Index.PHP will show a list of all the admins. Show would allow you to see details of a particular admin. New would be a web form to allow you to create new admins in the database. Edit is a web form to…

Contents