您好,欢迎访问一九零五行业门户网

PHP获取数据库的数据赋给下拉框

action里的代码public function add(){ $node=m('menu');//实例化数据库 $this->lists=$node->where(array('higher'=>0))->select();//根据条件筛选查出来的值给lists $this->display();}模版业里代码一级菜单{$vo.name}// {$vo.id}是你选择的{$vo.name}的id值//ps:手工打的代码,中间可能有错误
复制代码
其它类似信息

推荐信息