Basically, I have a simple login form. In the database, I have a column called "last_logged" and I want to update it with the current date and time every time someone logs in.
I currently have this query:
UPDATE users SET last_logged = "NOW()" WHERE id = 1
But it does not update the column to the current date. Any ideas why?
source
share