After you do get the number of rows affected when you do $table->delete($query)
does it return the number affected rows?
The correct answer is:
$result = $db->query($sql);
$affectedRows = $result->rowCount();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With