Zend_Db_Adapter::update() returns the number of rows affected by the update operation. What is best way to determine if the query was successful?
Zend_Db_Adapter::update()
$data = array( 'updated_on' => '2007-03-23', 'bug_status' => 'FIXED', ); $n = 0; try { $n = $db->update('bugs', $data, 'bug_id = 2'); } catch (Zend_Exception $e) { die('Something went wrong: ' . $e->getMessage()); } if (empty($n)) { die('Zero rows affected'); }