http://www.google.com/search?q=recursion+tree+php
it simple to do it in recursion.
this is looking nice -
http://www.sitepoint.com/article/hie...-data-database
i don't read it all but i saw the picture and the table and this is all what you need although i think you can find a better script code than they wrote there
