|

楼主 |
发表于 2012-7-20 15:20:50
|
显示全部楼层
tlerbao 发表于 2012-7-19 23:02 
其实我个人倒是觉得CI的中文手册非常棒,虽然有的地方翻译的比较僵硬,但是感觉比较符合新手学习流程,认真 ...
关联数组方法对着。
$array = array('name' => $name, 'title' => $title, 'status' => $status);
$this->db->where($array);
自定义字符串就错了。。。
$where = "name='Joe' AND status='boss' OR status='active'";
$this->db->where($where);
不知道哪块不对。。。是自己用的不对还是。。不清楚。。。 |
|