Louie Miranda wrote:
Hello,
i had been working the whole day thingking about how to expire a login? Using dates.
I have with me the ff fields: 1. regdate (YYYY-MM-DD) 2. expired (1=(Yes) or 0=(No))
Can you give me some tips, how to write this on php? The problem is, i could not figure out how to create a comparison string with the regdate and my 5 days expiration?
Ask this to a thousand people, get a thousand + 1 answers :)
Personally I'd probably convert the date to a unix timestamp and then add the number of seconds in 5 days to that time stamp.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php