自定义标签的where是不是只能用字符串查询?

浏览:566 发布日期:2015/10/17 分类:求助交流
$where['pid']=!empty($attr['pid'])?$attr['pid']:'0';
        $where['show']='1';
当我用array的时候,打印出来的是这样的 Array
(
    [pid] => 1
    [show] => 1
)
页面报错:1054:Unknown column 'Array' in 'where clause'
 [ SQL语句 ] : SELECT * FROM `mb_arctype` WHERE ( Array ) ORDER BY sortrank asc , id desc LIMIT 7 
是不是自定义标签的where查询只能用字符串查询?
最佳答案
评论( 相关
后面还有条评论,点击查看>>