lance
03-21-2005, 03:34 PM
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 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!