Creating collapable/expandable trees in php

Title says most of it im wondering how i can create basic collapseable/expandable trees with php/mysql using mysql to fill in data. Im very new to php but i have a good coding background so if someone could give me an expample that would be great!

i dont think there is any easy built in fuctions..

this article explains a way to do it…

http://www.sitepoint.com/article/hierarchical-data-database

that one shows how to make the tree, to make it collapse and expand you need to add a little javascript, but that should be pretty easy.

Are you able to help me wit hthe js i hate java :frowning: trying to do a few things i mostly do .NET programming

how many levels of trees are you going to have?

this might help you out..

Destroydrop » Javascripts » Tree

these ones might also help
http://www.chipchapin.com/WebTools/MenuTools/HTML_TreeMenuXL/
or
http://webreference.com/programming/php/hierphp/2.html

if you run into trouble i can help you out