First off, I want to apologize for my ignorance. I am extremely new to PHP and so my terminology may be off. I am not exactly sure what I am asking for so I will explain it to the best of my ability.
Currently I have a template I created for my website. I want to be able to create multiple content pages for the site but only have 1 Master page that I have to edit when I add links, change site wide pictures etc etc. I am also using a news posting application (FusionNews) which is a PHP based news script.
What I’m looking to do -
- Create Master Page (Index.php) - This is the page that is displayed when visitors access my website
- By default I want it to call on my news script and display it in the designated content area.
- By manipulating the URL I want to be able to access different content pages and have them display with in the designated content area.
Below is the code I thought I needed to use (may not be 100% correct) But essentially by putting the code in the designated content area it would allow me to call on the content.html pages I wanted and would display them in the content area of my website by using URL manipulation.
Example: http://site.com/ndex.php?page=content
[php]<?php include (“page.html”) ;>[/php]
Changing content with the appropriate name of the .html file I wanted to display in the content area would display the different pages appropriately. In addition I want the PHP include to call on my news.php automatically when visiting the index.php page so that users are not hit with an error code in the content area upon visiting.