where的写法,请教

浏览:505 发布日期:2014/12/08 分类:求助交流
看的手册这样写也可以啊,但是我这样写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
最佳答案
评论( 相关
后面还有条评论,点击查看>>