I am creating an activity feed using PHP and MYSQL. I would like to save the activity history in a table (activity_history) that lists who modified the entry last, when and what they modified.
I am able to insert the first two fine, but was wondering if there is a query that can return what changed in the record in the last executed query.
For instance, I would like history_details to be either (updated due date, updated activity name or changed status):
$update_activity_history = "INSERT INTO activity_history (activity_id, history_created_by, history_details)
VALUES ('$activity_id','$activity_created_by','$history_details')
"or die("Error: ".mysqli_error($connectio
));