Zend Framework Complex Where Statement

前端 未结 4 1397
感动是毒
感动是毒 2021-01-07 03:04

This method is published as offical example

->where(\"price < $minimumPrice OR price > $maximumPrice\") is such method safe?

want to write it as ->where

4条回答
  •  心在旅途
    2021-01-07 03:43

    $select->where($db->quoteInto('field1 < ? OR', $minPrice)
                 . $db->quoteInto('field1 > ?', $maxPrice))
           ->where($db->quoteInto('field2 < ? OR', $value2)
                 . $db->quoteInto('field2 > ?', $value3));
    

提交回复
热议问题