How to get corrupted Zend_DB_table rows?

After you get the number of rows affected during execution $table->delete($query), does it return the number of rows affected?

+3
source share
1 answer

Correct answer:

$result = $db->query($sql); 
$affectedRows = $result->rowCount();
+11
source

Source: https://habr.com/ru/post/1733690/


All Articles