old reply follows...
Your problem isn't with the $sth; since $sth is a lexical variable, each recursive call to GetChildren will have it's own version of it.
I'm not sure if you can nest SQL queries on a single database handle, though.
In reply to Re: Recursive dbh executions
by Joost
in thread Recursive dbh executions
by Sid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |