a little help with php nav
Posted: Tue Jun 03, 2003 10:25 pm
let me explain what i am trying to do, I have a list of links down the left side of my page. and when I go to a section say counter-strike I want it to load the cs nav "cs.php" so I got it doing that
with this code here.
<?php
if ($page=="cs-home") {
include ("http://www.themobnetwork.com/site/nav/cs.php");
}
elseif ($page=="d2-home") {
include ("http://www.themobnetwork.com/site/nav/d2.php");
}
elseif ($page=="") {
include ("http://www.themobnetwork.com/site/nav/nav.php");
}
else {
include ("http://www.themobnetwork.com/site/nav/nav.php");
}
?>
Now I want it to that the cs nav will load with every cs page so cs-home, cs- roster etc now I was thinking somthing like if ($page=="cs-*") but I am still fairly noob with php and learning. so if anyone could help me out. that would be amazing..
thank you ahead of time
with this code here.
<?php
if ($page=="cs-home") {
include ("http://www.themobnetwork.com/site/nav/cs.php");
}
elseif ($page=="d2-home") {
include ("http://www.themobnetwork.com/site/nav/d2.php");
}
elseif ($page=="") {
include ("http://www.themobnetwork.com/site/nav/nav.php");
}
else {
include ("http://www.themobnetwork.com/site/nav/nav.php");
}
?>
Now I want it to that the cs nav will load with every cs page so cs-home, cs- roster etc now I was thinking somthing like if ($page=="cs-*") but I am still fairly noob with php and learning. so if anyone could help me out. that would be amazing..
thank you ahead of time