This one might be a little tougher than my last q. I want to do recursive MySQL queries in php - i.e. move through a result array, issuing a query on each result, issuing the same query on those results, and so on until there are no more results to be had. This is for message threading, so there's no telling how deep a set might go. I think I know how to do this in Perl with some anonymous reference funnybusiness, but what about php? Can I store db handles (or a least result sets) anonymously in a list while I recurse through them, or am I approaching this from entirely the wrong direction?