When I run the following code, I get a UNIX timestamp for debugFeaturesLaunch, but not debugFeaturesLogin. Can someone see what I am obviously overlooking?
Thanks!
PHP Code:// $_SESSION[lastLogin] uses dates in the format of 01-30-2012
$lastLogin = strtotime($_SESSION[lastLogin]);
$_SESSION[debugFeaturesLogin] = $lastLogin;
$launchDate = "07-01-2012";
$launchDate = strtotime($launchDate);
$_SESSION[debugFeaturesLaunch] = $launchDate;
if ($lastLogin < $launchDate) {
$campaign = "Features";
$_SESSION[viewedCampaignToday] = "Yes";
}



Reply With Quote



Bookmarks