![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP开发
shuizhongyue_
这个作者很懒,什么都没留下…
展开
-
树形导航菜单
原文出处http://renzhen.iteye.com/blog/1329949 想写树形导航菜单,然后各种百度,这里涉及到引用传递,写的蛮好的 /* 通过数据库获取所有元素,通过下面函数构造树形结构 */ private function getTree($menus) { $id = $level = 0; $menuobjs=array(); $...原创 2015-06-22 10:09:24 · 392 阅读 · 0 评论 -
自己封装对数据库的一些操作
dbconn.php <?php class DBConn{ private static $servername = "localhost"; private static $username = "root"; private static $password = "root"; private static $conn = null; functi...原创 2015-07-04 21:50:30 · 67 阅读 · 0 评论