strtotime returns Integer and Boolean?
Posted: Mon Feb 14, 2011 10:46 pm
First post. Racking my brains on this one.
$listing_expiration is a mysql date field
$todays_date = date("m-d-Y");
$today = strtotime($todays_date);
$exp_date = strtotime($listing_expiration);
echo gettype($exp_date)
gettype($today);
}
return integer & boolean therefore comparison fails.
Any ideas?
--
Michael
$listing_expiration is a mysql date field
Code: Select all
$today = strtotime($todays_date);
$exp_date = strtotime($listing_expiration);
echo gettype($exp_date)
gettype($today);
}
Code: Select all
Any ideas?
--
Michael