Click here to Skip to main content
16,020,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends,
I want to create a tree view in php from database. Tree must be able to expand and minimize. Please suggest me a way to build the tree, help me from database to function to create tree. Database of tree must be able to update.
Please suggest me the solution.
Posted

1 solution

Have you tried something? have you used google at least? this is an extensive question, I would start searching for "create treeview php" in google, there are plenty of results...

In order to do that I would say that you first need to define the different levels that can happen in your articles (tree elements):

- can an article have only one father?
- can an article have more than one father?

This will help you to design the database relationships and tables.

Apart of that you will have to program the PHP tree (which won't be very difficult), you can fins several articlezs out there with samples...

I truly hope this helps to start... for sure the kind of answers you'll get here after posting this question are like mine (which won't help you a lot), try to get a little bit deeper into the subject and to find specific problems, here there are real experts that can help you solving that. If you ask for a so general thing they won't react well and won't do the entire job...

Good luck... :rose:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900