<tr id="qrElp"><span id="qrElp"><figure id="qrElp"><strong id="qrElp"></strong><strike id="qrElp"><kbd id="qrElp"></kbd></strike><kbd id="qrElp"></kbd></figure></span><optgroup id="qrElp"></optgroup><section id="qrElp"></section><map id="qrElp"><section id="qrElp"><legend id="qrElp"><del id="qrElp"><address id="qrElp"></address></del></legend></section></map><audio id="qrElp"></audio><caption id="qrElp"></caption></tr><style id="qrElp"><p id="qrElp"><link id="qrElp"><embed id="qrElp"></embed></link></p></style>

      <li id="qrElp"></li><abbr id="qrElp"><section id="qrElp"></section><rp id="qrElp"></rp></abbr><dt id="qrElp"><th id="qrElp"></th><caption id="qrElp"><rp id="qrElp"><aside id="qrElp"></aside><i id="qrElp"></i></rp><li id="qrElp"></li></caption><option id="qrElp"><td id="qrElp"><abbr id="qrElp"><figure id="qrElp"></figure></abbr><form id="qrElp"><dl id="qrElp"><textarea id="qrElp"></textarea></dl></form></td><input id="qrElp"></input></option><b id="qrElp"><ruby id="qrElp"></ruby></b></dt>
    1. <nav id="qrElp"><optgroup id="qrElp"></optgroup></nav>
        1. <dd id="qrElp"><progress id="qrElp"><i id="qrElp"></i></progress></dd>

            <cite id="qrElp"><area id="qrElp"></area></cite><section id="qrElp"><td id="qrElp"></td></section><dl id="qrElp"></dl>

            数据库查询exp问题

            浏览:70 发布日期:2019/10/16 分类:求助交流
            public function search() {
            $rec = input();
            $model = model('Category');
            $row = $model->get($rec['pid']);
            $color = 'color';
            $pro = model('product');
            $pids = $model->field('id')->where('pid', $rec['pid'])->buildSql();
            $where[$color] = ['like', '%' . $rec['color'] . '%'];
            if ($rec['pid'] > 0) {
            $where['category_id'] = array('exp', ' IN ' . $pids);
            }
            $row2 = $pro->where($where)->select();
            $this->view->assign('row', $row);
            $this->view->assign('row2', $row2);
            return $this->view->fetch();
            }

            $where['category_id'] = array('exp', ' IN ' . $pids); 这句报错,要怎么写呢?
            最佳答案
            评论( 相关
            后面还有条评论,点击查看>>