Hi, fileserverdirect!
In every If-statement you have add only one "=",
PHP Code:
if ($general = "yes")
add to this instead:
PHP Code:
if ($general == "yes")
OBS!! - REMOVE ALL ; AFTER }; AND ADD THEM AFTER
PHP Code:
$general = "yes" Add here-> ;
Here are the code:
PHP Code:
<?php
//title \|/Select yes only once
$general = "yes";
$games = "no";
$web_devop = "no";
$websites = "no";
$advert = "no";
$news = "no";
//page title
$pagetitle = "Home"; //Enter the page title here
//DO NOT EDIT BELOW THIS POINT
$begintitle = "My Comany Name™ -- ";
$gentitle = "MCN General";
$gamestitle = "MCN Games";
$web_devoptitle = "MCN Web Development";
$websitestitle = "MCN Websites";
$adverttitle = "MCN Adverts";
$newstitle = "MCN News";
//title printing
if ($general == "yes") {
$title = "$begintitle $pagetitle • $gentitle";
}
elseif ($games == "yes") {
$title = "$begintitle $pagetitle • $gamestitle";
}
elseif ($web_devop == "yes") {
$title = "$begintitle $pagetitle • $web_devoptitle";
}
elseif ($websites == "yes") {
$title = "$begintitle $pagetitle • $websitestitle";
}
elseif ($advert == "yes") {
$title = "$begintitle $pagetitle • $adverttitle";
}
elseif ($news == "yes") {
$title = "$begintitle $pagetitle • $newstitle";
}
else {
$title = "My Company Name";
}
//HTML/////////////////////////////////////////////PART 04
?>
<html>
<head>
<title>
<?php echo $title?>
</title>
</head>
<body>
Test
</body>
</html>
I hopes this was helpfull?
Best regards,
mbrodin
Bookmarks