No such thing as a small change | |
PerlMonks |
Nested Categoriesby spaceout (Initiate) |
on Jan 03, 2005 at 17:23 UTC ( [id://418991]=perlquestion: print w/replies, xml ) | Need Help?? |
spaceout has asked for the wisdom of the Perl Monks concerning the following question:
Hello all...I'm looking for some suggestions on a good method for creating nested categories. What I would like to do is store the category info in a database with 3 columns:
--------------------------------------------------------- That's easy enough...where I'm having trouble is retrieving this data in a way that makes it easy to place into a drop down list on a web page like this:
Category 1 - Subcategory 1 - Subsubcategory1 - Subsubsubcategory1 - Subsubsubcategory2 - Subcategory 2 - Subsubcategory1 - Subsubcategory2 - Subsubcategory3 This is what I have so far (not the entire script...just the relevant parts):
Any suggestions on doing this correctly would be wonderful. Thanks.
Back to
Seekers of Perl Wisdom
|
|