Zend Framework: How to delete a table row where multiple things are true?
- by Andrew
Normally, this would work for me:
$db = Zend_Db_Table::getDefaultAdapter();
$where = $db->quoteInto('id = ?', $id);
$db->delete('tablename', $where);
but I have to match two ids. So I don't really know how to structure it.
WHERE first_id = 'id1' AND second_id = 'id2'
So how do I do this with the Zend Framework?