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!
// $_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";
}
according to me, the strtotime() accept the English date format as in its manual, i look around the web for English date format most of them exclude the mm-dd-yyyy format.otherwise this function works well most of the time.