2

I have the following line of code

$select =  $read->select()
            ->from($batchTable,array('id','batch','strength','flavor','brand'))
            ->where('status', 1)
            ->order('created DESC') ;

How do I do multiple where statements?

1
  • 1
    Given Magento is built around Zend - you can reference the Zend manual for a lot of functionality. The documentation is very exhaustive. Commented Mar 13, 2013 at 16:15

1 Answer 1

4
$select =  $read->select()
            ->from($batchTable,array('id','batch','strength','flavor','brand'))
            ->where('status', 1)
            ->where('other_field', 'some_value')
            ->where('an_other_one' <> ?', 8)
            ->order('created DESC');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.