I'm creating a project where I need to inform users 1 day before the date expires.
I created code but .. it does not work.
$prev_expire_date = date('Y-m-d', strtotime($ads_details['ads_featured'] .' -1 day'));
if($prev_expire_date) {
echo "<a href='#' class='btn btn-sm btn-info-filled btn-rounded no-margin'><span>Renovar?</span></a></span></h4>";
} else {
echo "<a href='#' class='btn btn-sm btn-info-filled btn-rounded no-margin'><span>Destacado</span></a></span></h4>";
}