看的手册这样写也可以啊,但是我这样写where的时候调不出来内容
$parent = M('taxonomy')->where('type=category AND parent=0')->select();但是用array的时候,内容却可以出来
$w1['type'] = 'category';
$w1['parent'] = '0';
$parent = M('taxonomy')->where($w1)->select();是我理解的有问题么?
手册地址 http://document.thinkphp.cn/manual_3_2.html#where
版本3.2.2