It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming PHP and MySQL Forum

Using the file path... maybe?

Moderator: Malcolm

Using the file path... maybe?

Postby dflynn on Mon Dec 15, 2008 3:00 am

at the top of this page is something like:

Board Index >> Programming >> PHP and MySQL Forum

First, is there a name for that? I want to include it in my site but I can't find any tutorials for it or any info online because I don't know what to call it.

I'd assume it's through php but I could be wrong.

If anyone could point me to a tutorial or could help me making it that be great!

Thanks :D
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada

Re: Using the file path... maybe?

Postby webmaster on Mon Dec 15, 2008 8:42 am

In forums, every topic got it's own database post, and it has category_id, forum_id, subforum_id and so on, then the links and names get fetched from there.

If you use some other system, like using urls, you can just make it so:
www.yourdomain.com?cat=Animals&sub=Dogs

Will print out:
Code: Select all
<?php echo "<a href='/'>Index</a> - <a href='/' . $_G.ET[cat] . '/'>' . $_G.ET[cat] . '</a> - <a href='/'. $_G.ET[cat] . '/' . $_G.ET[sub] . '/'>' . $_G.ET[sub] . '</a>"; ?>


Get it? :D


I have no idea if this is called anything, should have some smart name, but I've never catched it :)

EDIT: I'm using G.ET instead of GET, because GET isn't working on the new forums, I'm working on that :)
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Re: Using the file path... maybe?

Postby dflynn on Mon Dec 15, 2008 3:09 pm

Ok I think I have the general idea. I'll take a stab at it later and see how much I screw it up :P lol
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada


Who is online

Users browsing this forum: No registered users and 0 guests