Hello!
There was a question of this kind, the authorization time is stored in the data_aut
line, the last visit time in the date_last
line. I need to put in the table how much time the user spent online on the site for all the time. Well, something like: time online 0 days 1 hour 25 minutes 47 seconds.
At first there were some considerations, but as you freaked out, the head doesn’t cook data_aut
:) data_aut
, date_last
are of type int (11) and take the value time (); I also need to put in another table how long the user was online, and add to what was already there, and if it wasn’t, bring the current one with the next update. The row in the table where the total time is stored has the name time with type int (11). At first, I thought to deduct from the time spent on authorization, the time of authorization, but nothing happened ...
I'm still a beginner, so do not judge strictly :) we all learn from mistakes.