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.

Solution: Build admin management

Solution: Build admin management

- [Instructor] Hopefully you did well with the challenge assignment. And you were able to build the admin management pages in PHP. In this movie, I'm going to show you the solution that I came up with. The first thing that I did, was on my main staff area page on index.php, I just added a new link right here to admins. And so that's going to go to /staff/admins/index.php, and that's going to allow me to get to my admin management. Let's take a look at that index.php page. It's inside the admins directory that keeps them all organized. You knows I have subjects and pages down here keeps them all sort of namespace together. And then inside index.php, you'll see that I'm calling a query function that we'll look at in a moment called find_all_admins. It gives me back a set of admins or a record set, and then I'm going to loop through those as a table and use mysqli_fetch_association to pull each admin out and display it as a list. And then each one of those items in the list is also going…

Contents