Deleting Multiple Rows with Zend DB Table Problem
- by davykiash
I have this data in my db
Col1 Col2
DA Data1
DA Data2
DA Data3
DA Data4
DA Data5
I would like to delete all the values WHERE col1 = DA using my Zend DB Table adapter.
The code below does not seem to work for multiple rows
public function delete($key)
{
$this->delete('Col1 = "'.$key.'"');
}
How can I adjust it so that I can delete multiple rows?