在PHP中生成Treeview [英] Generating a treeview in php

查看:93
本文介绍了在PHP中生成Treeview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我想从数据库中用php创建树形视图.树必须能够扩展和最小化.请建议我一种构建树的方法,从数据库到函数帮助我创建树.树的数据库必须能够更新.
请向我建议解决方案.

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.

推荐答案

您是否尝试过?您至少使用过Google吗?这是一个广泛的问题,我将开始在Google中搜索创建treeview php",结果很多...

为此,我要说的是,您首先需要定义文章(树元素)中可能发生的不同级别:

-一篇文章只能有一个父亲吗?
-一篇文章可以有多个父亲吗?

这将帮助您设计数据库关系和表.

除此之外,您还需要对PHP树进行编程(这不会很困难),您可以在其中找到带有示例的几篇articlezs ...

我真的希望这可以帮助您开始……肯定会在您发布此问题后得到的答案像我的(对您没有多大帮助),请尝试更深入地了解主题并找到特定的问题,这里有真正的专家可以帮助您解决问题.如果您要的是这么普通的东西,他们将不会做出很好的反应,也无法完成全部工作...

祝你好运...:rose:
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:


这篇关于在PHP中生成Treeview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆