PHP and MySQL login system
Hi,
I am working on a php and mysql login system.
I am creating a login system which tracks the user activity. The time and date gets saved into the database when they last logged on. My client requires to know how many times a user has logged in between two dates. The only way I can think of doing this is inserting into the database every time they have logged in (time and date) and then carry out a query of when the user has logged on between date1 and date2.
At the moment the database updates the last time they logged in. So would it be best to insert every time they log in as appose to updating? Is this the best way to do it?
Thanks
