I have following query in my project,
$values = array("test"=>"value")
$this->_db->update("tablename",$values,array('id = ?'=> $data['id'],'wid = ?'=> $data['WId']));
If i execute first time i got updated with values, if i did second time, Sql error will be something like “0 rows affected” . So here I need to know that exception in zend framwork. Kindly help me
Going from the comments, I think you need to use:
$rowsAffectedwill give you the number of rows affected. So if its0, output your message.