Hello,
I’m making a website and my homepage (index.php) has a diffent layout then the rest of my pages.
I’m working with cases and when case (?p=2) = 2 you go to the about page. That page shoud have a different layout because I’m giving my div’s other styles but that page is still getting the css div style from the index.php.
I there a way to avoid this? It is really annoying and I cant find an easy answer.
If somebody could help me that would be great
Thankyou!
[code=php] <div id=”main-home-right”>
<?php
if(isset($_GET[‘p’]))
{
switch($_GET[‘p’])
{
case “1”:
default:
include “modules/content.php”;
break;
case “2”:
include “modules/about.php”;
break;
}
}
else
{
include “modules/content.php”;
}
?>
</div>