Yes, my table structure has a parent_id field. The problem is that I need know the depth, or use recursivity to get all parents.
Using hierarchy and recursivity like this: http://stackoverflow.com/questions/4216875/php-reorder-array...
Using hierarchy and recursivity like this: http://stackoverflow.com/questions/4216875/php-reorder-array...
see if that helps