I have a table called users. There are Different columns, but to simplify this, lets say there is just Username, Password, and Login times Collumns.
When someone signs up, there username goes into the username collumn, and password goes into password collumn. Now when they sign in, the time goes into the Login Time collumn using this:
$time = time();
$logintime = "UPDATE users SET time='$time' WHERE username='$username'";
Now, when someone logs in, it overwrites the previous value in the collumn.
How can I get it to keep the old one, and add a new time so I have a complete list of times they log in?
Thank you