I want to be able to check when a user last logged in. A user authenticates against a database to enter the site.
As I see it, there are two steps: 1. A SELECT statement is processed to validate user, 2. the table tblusers is updated reflect the last successful login.
The first part is done, but I'm not sure how to process an UPDATE statement and a SELECT statement at the same time (ie. when the LOGIN button is clicked).
I'm using PHP 4.22 and MySQL.
Thanks.