K
Kavrocks
Guest
My website is currently made using html and css, I'm looking to convert parts of my website to use the php include() function to make editing my site easier.
I have the same navigation bar and banner on all of my pages.
I have my banner and navigation bar all in one table with css classes in a lot of the tags on it and there is a wide range of html tags. I want to know what do I do with this table to put it in the file I will include in all of my web pages with the include() function. Do I just copy and paste the table as it is starting with <table> and ending with </table> or do I have to put it in php tags like this <?php <table> </table> ?>? Is there any need for <html><head> and <body> in this file which I want to include in all of my pages?
In the pages where I want my include file to appear as normal do I just need to paste this: <?php include("header.php"); ?>?
I would be very grateful for your help as it will save me a lot of time. I've tried searching for the answer on the internet but I cant seem to find the answer.
Thank you for the replies, I now understand what needs to be done.
I have the same navigation bar and banner on all of my pages.
I have my banner and navigation bar all in one table with css classes in a lot of the tags on it and there is a wide range of html tags. I want to know what do I do with this table to put it in the file I will include in all of my web pages with the include() function. Do I just copy and paste the table as it is starting with <table> and ending with </table> or do I have to put it in php tags like this <?php <table> </table> ?>? Is there any need for <html><head> and <body> in this file which I want to include in all of my pages?
In the pages where I want my include file to appear as normal do I just need to paste this: <?php include("header.php"); ?>?
I would be very grateful for your help as it will save me a lot of time. I've tried searching for the answer on the internet but I cant seem to find the answer.
Thank you for the replies, I now understand what needs to be done.