Zend Framework: How to delete a table row where multiple things are true?

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2009-12-04T06:05:21Z Indexed on 2010/05/30 0:52 UTC
Read the original article Hit count: 250

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?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend-db