> How are your groups linked with your users? Does every user has a GroupId in > his record? The code is not specifically related to a user management system, but is something you can use to easily build such a system. > Does this question has to do with building an html tree or it is about the > best database schema that helps to construct and retrieve a tree faster? The HTML_TreeMenu class will allow you to easily build a menu, and the Tree class will help you easily build a tree structure to be used with the former. -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated November 1st) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php