多字段模糊查询

$where['ex_account'] = array('like','%'.$p.'%');

$where['ex_nickname'] = array('like','%'.$p.'%');

$where['_logic'] = 'or';

$res = $db->where($where)->select();

posted @ 2015-06-16 13:29  rickon  阅读(277)  评论(0编辑  收藏  举报