So I just have begun to build a website from the groundup. I have never did this before. I'm working on a server.
1. Question:
Within my file index.php I have the following content:
<?php include("html/Start.html"); ?>
It works great, the content of Start.html is displayed. Within the folder html I have more files, like courses.html for example. Within this file I wanted to connect to my database (works great in Start.html) but I then noticed I couldn't use any php code inside courses.html. Including a html file didn't work inside courses.html, for example.
What did I do wrong?
2. Question:
I was thinking about a smart solution for the website and their subpages. When clicking on a link at the navigationbar like "Courses" I don't want mywebsite.com/html/courses.html to be displayed, more like something mywebsite.com/offers/courses
but how do I do that?
Excuse me for these basic questions, but I have no idea where to start. If there is something unclear, feel free to leave a comment, thank you