Zend-framework DB: OR instead of AND operator

后端 未结 3 412
醉话见心
醉话见心 2021-02-05 22:23

have such zend query:

$select = $this->_table
               ->select()
               ->where(\'title LIKE  ?\', \'%\'.$searchWord.\'%\')
                      


        
3条回答
  •  你的背包
    2021-02-05 22:49

    I have implemented your zend query

    $select = $this->_table
                   ->select()
                   ->where('title LIKE  ?', '%'.$searchWord.'%')
                   ->ORwhere('description LIKE  ?', '%'.$searchWord.'%')
                   ->where('verified=1 AND activated=1');
    

提交回复
热议问题