大神,求助
thinkphp吧
全部回复
仅看楼主
level 9
deycecep 楼主
thinkphp一条WHERE查询的写法
2015年05月24日 14点05分 1
level 9
deycecep 楼主
where (a and b ) or (c and d ) THINKPHP 应该怎 写?
2015年05月24日 14点05分 2
level 2
$map[a] => array('and',b);
$map[c] => array('and',d);
$map['_logic'] => 'or';
where($map);
你测试一下,看看是否正确。
大体思路应该是这样吧?
希望能帮到你。
2015年05月24日 16点05分 5
abcd是四个字段,你这只有a和c吧
2015年05月24日 17点05分
@deycecep $map[a] => array('and',b); 前面的键名是a 后面的一个数组中有b ,c和d也是这样。你测试一下,看看是否正确。大体思路应该是这样吧?这只是一个思路
2015年05月24日 23点05分
1