What is $i? Why is $idy defined twice?while (my $idy = $result->fetchrow_hashref()) { $idy = $i->{id};
Is there a reason you are trying to reinvent this wheel instead of using DBIx::Tree or DBIx::Tree::NestedSet?
In reply to Re: Hierarchical Tree Traversal
by jZed
in thread Hierarchical Tree Traversal
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |