Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $searchConditions = array();
- $searchConditions[] = $db->quoteInto ('a.field1 IN (?)', $array );
- $searchConditions[] = $db->quoteInto ("a.field2 LIKE '?%'", $input, 'INTEGER' );
- $select->where (new Zend_Db_Expr(implode(' OR ', $searchConditions)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement