PHP Code - HELP! Hi! I am having some trouble with the following code: <?php if(!$page || $page == "") {$pages = "default";} ?><?php include ("$page.html"); ?> Now I've been told to replace "page" with something like an initial say e.g - site is called sims site then use ss. Then I was told to replace "default" with the page location which first appears when you go to the site with the ?no bit. Are you lost? If not: Then I was told to replace page.html with the extention of the pages you want the content to appear on e.g - so if my pages have the extension .php i'd have to add that.... But what I want to do is make one page and use this code so all that happens is the content changes, which would save me editting each menu on each page one-by-one... Does anyone know PHP and can help? Oh yeah - Am I supposed to get rid of these >> " << because if so then im an idiot! lol!
I want to make it so I don't have to edit each page individually. So what your supposed to do is add this code and then the whole website runs on one page but just the main content changes, where this code should be added.... Not sure if you understand that... But, I dont know how to edit...
So your talking more about Dynamic Content Pages? Or are you talking about includes, where you modify one set of pages, it modifies all pages with that file?