I'm trying to implement a PHP template system for my site however after reading through about 400 tutorials on this subject and posting in various forums I'm still having major league problems.
What I have so far is a main index page which contains the top section, the logo, the left hand side navigation, the right hand side and thr bottom section. I took out the three tables with the content in from the center and placed them in another file.
So the main index page is the actual template web page so all other pages will be built around this. I called it indexphp.php.
What I don't get is, the URL says http://www.domainname.com/indexphp.php?id=home
What the hell goes into the id file?
To test it I just put a simple hello text and saved it as id.html. Now when I typed in my url like the above one it loaded the actual indexphp.php webpage which was the actual template but instead of loading the home.html which contains the three tables and content which will go in the centre of the indexphp.php webpage it just loaded the id page which I had written hello in.
Sorry if this doesn't make much sense my brain is scrambled as I've been trying to get this to work now for a month and this is the best I can do
If someone could post an example or tell me what I'm doing wrong I would be eternally grateful as I can't find any more tutorials or anything and all my hairs falling out
PLEASE HELP SOMEONE
Paul