I\'m new to Zend Framework and I\'d like to know how I can get the number of affected rows from this:
$sql = \"UPDATE auth SET act=\'\', status=\'1\' WHERE u
Zend_Db_Statement_Pdo has a rowCount() method.
See the API docs
Returns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object.
This means you can simply:-
$rowsAffected = $stmt->rowCount();
Straight after calling execute() and you should get the number of rows affected.