A
Anonymous
Guest
I have the following table for category/sub category :
CategoryID - int
Title - varchar
MainCatID - int
CategoryID | Title | MainCatID
------------- --------- -----------------
1 | News | 1
2 | Sports | 1
3 | Local | 2
On my site, I want to display a navigation history at the top of the page, when the user browses through the cat/subcat.
For example if i have reached the Local page, the navigation should display :
Home > News > Sports > Local
Any idea of a code how i can do this loop. Bear in mind that each time i load the page i can get the CategoryID of the page i am in.
Thanks for any help.
Devgirl.
CategoryID - int
Title - varchar
MainCatID - int
CategoryID | Title | MainCatID
------------- --------- -----------------
1 | News | 1
2 | Sports | 1
3 | Local | 2
On my site, I want to display a navigation history at the top of the page, when the user browses through the cat/subcat.
For example if i have reached the Local page, the navigation should display :
Home > News > Sports > Local
Any idea of a code how i can do this loop. Bear in mind that each time i load the page i can get the CategoryID of the page i am in.
Thanks for any help.
Devgirl.