Can someone check my logic just so I know for sure that I'm doing this right?
Posted on 2013-12-06
A student goes out to my page to make some last minute changes knowing that the cutoff is drawing near. In this case, it's December 4th. She has to have all of her updates done before the clock strikes 12:00 AM, December 5th.
The code that I have written which defines that dynamic is this:
if($marketing_end_four<=$today AND $mk_four_close=="0000-00-00")
//empty the system of all entries that have been made up to midnite the day the marketing period ends.
$marketing_end_four in this case is 2013-12-04. My "<-," in my mind, means that all the entries that have been made up to 11:59 PM on the 4th will be processed.
Before I had the code set up so it read "if($marketing_period_four<$today...so what was happening is that you couldn't make any changes on the day the marketing period ended. But with the "<=," now I've got things where the user can change things right up to 12:00 AM on the fifth.