PHPCMS查询数据库表中的数据

来源:互联网 发布:mac的图片编辑软件 编辑:程序博客网 时间:2024/05/29 13:39

双引号里面传入表名

$this->db->table_name=$this->db->db_tablepre."admin_role";

执行查询

$admin_role_table=$this->db->select("",'*',"",$order);

其中select对应的参数如下

$this->select($where = '', $data = '*', $limit = '', $order = '', $group = '', $key='')  

载入模板文件,admin_role是template下admin_role.tpl.php不需要跟上文件名后缀

include $this->admin_tpl("admin_role");

0 0
原创粉丝点击