用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1170|回复: 1
收起左侧

[视图] 如何使用count_all_results()在视图界面添加if条件

[复制链接]
发表于 2017-7-7 09:06:07 | 显示全部楼层 |阅读模式
$this->db->like('userid',$getuid);
$this->db->from('orders');
/*$this->db->where('status','1');*/
$data['count'] = $this->db->count_all_results();

该怎么给视图页面添加注释掉的条件,生成查询结果
发表于 2017-7-7 12:35:58 | 显示全部楼层
可以直接用呀,有什么问题吗

本版积分规则