Re: I have sub-categories but want to display full category path
- From: "Phil Latio" <phil.latio@xxxxxxxxxxxxxxxxx>
- Date: Fri, 02 Feb 2007 20:39:28 GMT
Unfortunately you can't do that with a single SQL statement (unless you
use a nested set structure, but that would be real overkill). You have
to walk up the tree in a loop and fetch every parent node until you
reach the root node.
Thanks for your answer.
Cheers
Phil
.
- References:
- I have sub-categories but want to display full category path
- From: Phil Latio
- Re: I have sub-categories but want to display full category path
- From: Michael Fesser
- I have sub-categories but want to display full category path
- Prev by Date: Re: PHP 4.4.4 vs Perl 5.8.7 for Object Oriented server code
- Next by Date: Re: I have sub-categories but want to display full category path
- Previous by thread: Re: I have sub-categories but want to display full category path
- Next by thread: Re: I have sub-categories but want to display full category path
- Index(es):
Relevant Pages
|