I am trying to check if the user has been on the site longer then 6 months, if they have to prompt a message.
I cannot get this to work, it keeps thinking 6 weeks has passed even when the date is moved to today.
Currently my code.
$created_at = "2014-12-01 16:58:23";
$sixweek = 604800 * 6;
if(strtotime($created_at) < time() + ($sixweek))
{
$data['needsnewimage'] = 1;
die('6 Weeks has passed ');
}else{
$data['needsnewimage'] = 0;
die('6 Weeks has not passed');
}
Any ideas?