The php tree structure wants to implement a list of tree structures. data (root nodes and subnodes) are read from the database, and charts are displayed on the nodes. I don't know how to do this, so I am in a rush. Thank you ., $ Node = array (& quot; data & quot; = data, & quot; child & quot; = subnode, & quo php tree structure
To implement a list of tree structures, data (root nodes and sub-nodes) is read from the database, and charts are displayed on the nodes. you don't know how to do this, so you are in a rush. Thank you.
Binary Tree
$ Node = array ("data" = data, "lchild" = left node, "rchild" = right node)
------ Solution --------------------
The implementation function you mentioned seems to be JS. Find Jtree. js to transfer data from xml. You can study it.
I didn't understand what you said.
PHP + xml + JS can implement your things. Then you can store the xml code in the database.
------ Solution --------------------
I made one. you can check it in my blog.
Http://blog.csdn.net/guosheng1987/archive/2008/09/04/2881562.aspx
------ Solution --------------------
It is recommended to use javascript. There are many search results in goole, which can be used in combination with php.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service