Page 1 of 1

a little help with php nav

Posted: Tue Jun 03, 2003 10:25 pm
by redfire
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

Posted: Tue Jun 03, 2003 11:01 pm
by nigma
Nigma to the rescue! Hey, I would be interested in working on this with you. I am almost certain I could help if things were clerified a bit. It alright if I add you to like YIM or MSN(whichever you prefer) and we talk about this some more?

Posted: Wed Jun 04, 2003 9:05 am
by redfire
ok that would be great, add me to msn, bigdrakar@hotmail.com I don't realy use icq or yahoo anymore, but if thats all u have I will boot up the old gal again.

thank you for all your help