I'm trying to select data from within the last 28 days using PHP.
I don't think I'm getting the right results. This is either due to incorrect select or because of the leap year?
$date28 = date("Y-m-d", strtotime("-28 day"));
Is that correct or is there another way to do it?
I don't think I'm getting the right results. This is either due to incorrect select or because of the leap year?
$date28 = date("Y-m-d", strtotime("-28 day"));
Is that correct or is there another way to do it?