php - How can I keep record of changes after an update in a table in mysql?

Im importing a csv file into a sql table, from there it is ok. Im also updating a column called date, so everytime an user import a file it also updates the date. But the problem is that the user needs to upload a file every month and I need to keep track of every upload into the table. I do not know how to do it. Can somebody give me a hint?
Answer
Solution:
If you don't need to know changes in the file you can just use a column with an update date (you can use triggers for this or edit your column like: `tm` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
). You could also store a number of "edit times" to see if it's the same as the number of months since the creation of the row.
Otherwise, you should write a new row for every update and keep track of the user by an ID.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: xml parsing error: no root element found
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.