Hi all,

I want to store some values in an array with the elements id and parent like array(id,parent).And i want to display the values in a tree structure.

How will i do this using php?

Any body knows this?If so please do reply.

Thanx in advance...
:-)

Hi all,

I want to store some values in an array with the elements id and parent like array(id,parent).And i want to display the values in a tree structure.

How will i do this using php?

Any body knows this?If so please do reply.

Thanx in advance...
:-)

That is not a problem.

You a 2D array. e.g. array[0] ="value", array[0] ="value"
array[1] ="value", array[1] ="value"

May be if I didnt understand the questions. Explain it.

Samay

yes...i've an array as u mentioned...then how will i display it in a tree structure?

Where do you want to start from ?

And how do you want to display it ? I mean what type of tree ?

i don't know more about the tree types.I am a beginner.I just want to display the elements of the array in a tree structure according to its parent that is stored in the array.


Thank you...