Hope all of this helps.my $tree = build_tree(0); print_tree($tree); . . sub build_tree { my $index = shift(); my %tree; foreach ("select id from table where cat_id = $index") { %tree{$_} = build_tree($_) || $_; } \%tree; } . etc.
In reply to Re: Using SQL to create menu entries (was: Could u pls help me to solve....)
by benn
in thread Using SQL to create menu entries (was: Could u pls help me to solve....)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |