0
I’m making a system in php where the counter sends a file to the client (using database). My question is the following, how to do when the client accesses this file, is sent to the database the time and date it was opened.
I managed to solve.
I did the following, as soon as the user accesses the document (through the mode querystring), i update a field I have in the database with the name of "data_visualization" putting the current date through the sql function "CURRENT_TIMESTAMP " and insert 1 in the field archival. So on the page where the saved documents are listed, I make a condition: if archive is equal to 0, then I highlight the file title so that the user knows that that file has not yet been viewed.
You can create a kind of file view log, post more details, post your code, what you’ve tried?
– abfurlan