php includes

changing to php includes is a really good thing to do your website and it's usually quite easy. Php includes is where you have code on a page that links to another page so on the "other" page the content will appear on the page where you put the code. I'm sorry if it wasn't very clear but once you finish this tutorial everything will be much easier :)

1. Copy the code under into notepad or wherever. This will be your homepage and the name is header.php. Remember it can be changed but this is the basic structure of this page.


2. Change everything on the header.php page so it looks like your original homepage.
3. We're going to make a footer. This is completly optional but this is the code I use for the footer.


4. Save this as footer.php
5. Copy the code under in a new page.


6. Remember to remove the spaces between ? and >. Now in between here is where you put your content for each page.

Note:
If when you go to a page and nothing is working then try this:
-Instead of copying that last code copy and paste this one.


-Did it work? Well I hope so, if not then don't hesitate to contact me and i'll be glad to help.


(C) Braindeadd.info 2008