0

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...
:-)

2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by sreya.n
0

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

0

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

0

Where do you want to start from ?

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

0

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...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.