Page 1 of 1

unlimited category problem

Posted: Tue Sep 12, 2006 5:32 pm
by tekinonline
http://img170.imageshack.us/img170/3518/catdr1.jpg

i think you can see easier with the help of picture. how can i do category connections which you can see above.

product_detail.php?id=11 how can i do connection in the picture start with this catid. i would like to catch this picture, i mean used categories

ANASAYFA > Erkek > Cilt Bakım > Nivea > 20'li Yaşlarda > Nivea

feyd | 73K image, no thanks.

Posted: Tue Sep 12, 2006 6:37 pm
by Weirdan
start from the most specific category/product and fetch it's parent. Repeat until the parent_id of current category is 0. Then reverse the list of categories you assembled.

Posted: Wed Sep 13, 2006 4:18 am
by CoderGoblin
Storing Hierarchical Data in a Database gives another alternative.