PHP Snippt to get the changes caused by the UPDATE query

This is a simple trick to get the changes caused by the UPDATE query.

The trick is to get a copy of the row before and after UPDATE query and compare those rows to get the changes. If you would like to go for something complicated than this one, then you should check the MySQL TRIGGER.

[gist id=”1685b552ee79afb23733″]

Leave a Reply

Your email address will not be published.