I have started creating a CMS today for my own personal use, for management purporses and also to teach myself a few things.
I have a section in my admin area where I can create/update/delete pages or posts which works great.
My question is how do I generate pages, and URL's from the information I have stored in my database?
Let's say for example my table "posts" has a few rows which contain "post_title", "post_content", "post_slug", etc. How do I generate a page from this information in my database (because it's obviously not creating pages based on PHP files), so I would have http://mywebsite.com/cool-new-post-slug.php (then I can get content by ID, etc)?
If someone can point me in the right direction that would be great. Thanks for your answer.