Basically, there is a "type" in a database that has "Probation" in it. There is also a time stamp of "2017-01-15 22:18:44" for example in RealDate
. No matter how long ago the date is, the difference still returns true like it's within three days. Any suggestions?
$doR = $totalArr[$i]['RealDate'];
$start = strtotime($doR);
$today = time();
$diff = ($start-$today)/(60 * 60 * 24);
if($diff < 5){
$parole = "<span style=\"color:red\"> - ON PAROLE</span>";
}