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.

Add pages for each subject

Add pages for each subject

- [Instructor] In the previous movie, we were able to create a list of subjects to display in the navigation that users will use to navigate the page content of the public facing website. In this movie, we will learn to add a list of each subject's pages underneath those subject names. What I mean is that underneath About Globe Bank, there should be a series of pages of content that are related to this subject. About Globe Bank is the subject. It's not the page. It doesn't have any content on its own. There are a series of pages related to it that do and those should show up right below it. And then for consumer, there should be a list of pages that show up under consumer and so on. If you recall, in the first part of this course, we talked about the fact that there is a one to many relationship between a subjects and its pages. One subject has many pages. And the way that we represent this in a relational database is we use a foreign key that's in the pages table and that's what…

Contents