Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello! I'm looking for a modules or somethings to building tree in my CGI scripts (data sources from mysql db), eg.

A +--B + +--C + +--D + A2 +--B2 + +--C2 + +--C3 + A3
data in db looks thats:
id | parent | name ---------------------- 1 | 0 | A 2 | 1 | B 3 | 2 | C 4 | 2 | D 5 | 0 | A2 6 | 5 | B2 7 | 6 | C2 8 | 7 | C3 9 | 0 | A3
any suggestions ?

Replies are listed 'Best First'.
Re: Build tree
by Errto (Vicar) on Feb 04, 2005 at 21:02 UTC
    A similar question was asked before. The responses there seem to be pretty much what you are looking for. You don't mention what format you are looking for, but I assume it is probably HTML since you mention CGI.