<?php $variable1 = "TRUE"; if ($variable1 == "TRUE"){ $todaytime = date("Y-m-d H:i:s", strtotime('-1 days')); } else { $todaytime = date("Y-m-d H:i:s"); } echo $todaytime;
You have javascript disabled. You will not be able to edit any code.