After searching high and low, I've found quite a few discussions about
using recursion to create breadcrumbs, and other nested "categorical"
info. It seems to be a pretty common question, and I would expect that
there is a common solution out there, but I can't seem to find one.
I'm trying to display:
Home > Cat > Sub Cat > Sub Sub Cat > .. Etc.
My DB table looks like :
Cat ID CatName ParentCatID
--------- ------------- -----------------
1 CDs 0
2 Good CDs 1
3 Bad CDs 1
4 U2 2
5 Nsync 3
This would display:
Home > CDs > Good CDs > U2
Anyone have a straightforward code snippet for this?
Thanks!
Jake
--
My Blog - <http://www.countersinkdg.com> www.countersinkdg.com
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- RE: Recursion and Breadcrumbs Jake McKee
- RE: Recursion and Breadcrumbs Dominik Schlaepfer
- Re:Recursion and Breadcrumbs Jake .
- Re:Recursion and Breadcrumbs cf
- Re:Recursion and Breadcru... Jake .
- RE: Recursion and Breadcrumbs Dominik Schlaepfer
- Re:Recursion and Breadcrumbs Trevor Holm-Laursen
- RE: Recursion and Breadcrumbs Hagan, Ryan Mr (Contractor ACI)
- Re:Recursion and Breadcrumbs Trevor Holm-Laursen
- Re:Recursion and Breadcrumbs Jake .
- RE: Recursion and Breadcrumbs Andre Turrettini