thinkPHP访问不同表前缀

        $Model=new Model();
        $goods=$Model->Table('sdb_goods');
        
        $param['brief']=array('like','%'.$p_title.'%');
        $param['name']=array('like','%'.$p_title.'%');
        $param['_logic']='or';
        $goods_list=$goods->field('name,price,goods_id,mktprice,small_pic')->where($param)->select();

        $this->assign('seek_drug',$goods_list);    

  

posted @ 2014-03-11 19:55  泡沫幻想  阅读(1283)  评论(0编辑  收藏  举报