jonniejoejonson Posted February 19, 2008 Share Posted February 19, 2008 Hey guys... how do sites have navigation links, like the one at the top of this page... PHP Freaks Forums > PHP and MySQL > PHP Help > Start new topic I can see it is fairly simple to do IF there is only one root to for example 'Start new topic'... however if like on my site there are many roots to get to 'Start new topic', how do you keep track of the root they have taken. I can store it in session variables because what if a user clicks the back button or refreshes a page? thanks to any responders. Quote Link to comment Share on other sites More sharing options...
bank Posted February 19, 2008 Share Posted February 19, 2008 Well, it uses a breadcrumb trail, as I recall, if you're running a forum, you could run a mysql query to find sub directories. Quote Link to comment Share on other sites More sharing options...
chronister Posted February 19, 2008 Share Posted February 19, 2008 here is a breadcrumb class that is easy to integrate and use. http://www.baskettcase.com/classes/breadcrumb/ Nate Quote Link to comment Share on other sites More sharing options...
ILYAS415 Posted February 19, 2008 Share Posted February 19, 2008 Another way to do it is simply by doing something like this... Forum/website name > $forum > $category > Text here or maybe even if your viewing a thread... $threadname All you'll need to do is assign the variables before that text. e.g. by using $_GET probably? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.