I have a edit profile page in my social media website.
When users click submit on the form. I run an update query to obviously update the users field in the database.
How can I optimize this scenario to include the logging of which particular fields are updated?
So for e.g.
One scenario could be:
Chris updated his profile picture.
Another scenario would be:
Chris updated his profile, inc:
- Username
- Address
- Address 2
Can anyone offer a solution to this?
I feel there is no need for code as all it is, is an update query.
Thanks