harvillo wrote:I have a timestamp set in a database for a user:
$original_timestamp=timestamp when the user registered (in database)
I would like to display a message to the user if upon logging in , it has been more than 24 hours since the last login date.
Actually, if I understand you, what you are trying to accomplish is not possible the way you are going about it.
What you want to do is find out how long it has been since their "Last Login" (not how long it has been since they "Originally Registered").
In that case, you need to create a new field in your database called: last_login
You will then need to update that field with each successful login.
Then you will be able to do what you want.
Otherwise, you will just continue to find out the amount of time since when they "Originally registered" to the site.... not their last login.