Ok, I had help and wrote a PHP program to print a different page banner on a page based on a variable input from the URL (For example index.php?task=about will print out About Us on the page) My code for the program is
PHP Code:
<?
$hostname = "localhost";
$db_user = "root";
$db_pass = "mypass";
$database = "twn";
mysql_pconnect($hostname,$db_user,$db_pass);
If($task == ""){$title = "Welcome";};
If($task == "products"){$title = "Products";};
If($task == "services"){$title = "Services";};
If($task == "showcase"){$title = "Showcase";};
If($task == "screenshots"){$title = "Screenshots";};
If($task == "contact"){$title = "Contact Us";};
If($task == "about"){$title = "About Us";};
?>
The code to print the title on the page is:
To put the code into the page I use an include:
PHP Code:
<? include("inc/common.inc.php"); ?>
Thank you for all your help =)
PS: Is some sort of database entry requiered for this to work?