How to Create Database-Driven Tree Menu with PHP
To create a dynamic tree menu from database, you can input some condition clauses using either CGI (ASP, PHP, and etc.) or JavaScript language, that is, to input the Prefix or Suffix for a node in the Node Settings > Condition dialog.
Click the following link to learn using PHP to create a tree menu:
http://www.sothink.com/product/treemenu/samples/php/phpdb.htm