Click to See Complete Forum and Search --> : PHP tree


aziz
09-14-2006, 12:42 AM
i want to create a dynamic 6 level tree in php which should be connected to database.

NogDog
09-14-2006, 01:50 AM
i want to create a dynamic 6 level tree in php which should be connected to database.
OK.

So, do you have a question about it, or are you looking for someone to write it for you, or what?

aziz
09-14-2006, 01:56 AM
actually i hv tried a few codes to generate a 6 level php tree but they r'nt working. i want to break the tree in two 3 level trees, but 4 that i hv to make new table for each tree. that would b cumbersome . can u help?

Brooksie155
09-14-2006, 05:47 AM
I would probaly create a class object, and instantiate a new copy for each branch in the tree, then use a recursive function to link them together, storing the a unique branch value in each object, and a reference to the one it's connected to ... You could then use another loop to parse the tree and create your tables - insert data as required........

I think ...