ziggy1621
08-15-2007, 05:04 PM
hello all,
I'm currently storing $lastLogin as
date('n/j/Y');
and I need to see if last login was 6 months ago, which would be
mktime(0, 0, 0, date("n")-6, date("j"), date("Y"));
My question is, how do I break up the $lastLogin to see if $lastLogin was greater than 6 months ago. I'm guessing I can strstr it, but I think I will run into conflict with the years rolling over.
Any comments appreciated.
Thanks,
ziggy
I'm currently storing $lastLogin as
date('n/j/Y');
and I need to see if last login was 6 months ago, which would be
mktime(0, 0, 0, date("n")-6, date("j"), date("Y"));
My question is, how do I break up the $lastLogin to see if $lastLogin was greater than 6 months ago. I'm guessing I can strstr it, but I think I will run into conflict with the years rolling over.
Any comments appreciated.
Thanks,
ziggy