From PHP, if I execute a query like the following with mysqli_stmt_execute
:
UPDATE users
SET hair_color = 'brown'
WHERE height > 180;
How can I figure out which rows in the table were actually updated and affected by the query?
Please note that I am looking to solve this problem in only PHP, without the use of DB triggers, etc. Very specifically, this question came about because we're trying to remove all triggers from our DB.