用户日志捕获

I want to log the details of editing in database table. The table has multiple fields. May be some fields edits others replace the same values. How can i add updated details as a message into log table in php/mysql?