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
From the course: PHP with MySQL Essential Training: 2 Build a CMS
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
User authentication overview5m 11s
-
(Locked)
Create admins table3m 7s
-
(Locked)
Challenge: Build admin management3m 52s
-
(Locked)
Solution: Build admin management6m 30s
-
(Locked)
PHP password functions7m 27s
-
(Locked)
Authenticate user access8m 27s
-
(Locked)
Require authorization6m 15s
-
(Locked)
Log out a user2m 48s
-
(Locked)
Optional password updating6m 2s
-
(Locked)
Authorized previewing3m 46s
-
(Locked)
-
-