Using the following if statement I am trying to check whether the day of the week is Friday
if(($uur < 12) && ($min < 30) && ($datum == date('Y-m-d', strtotime('Friday'))))
{
$proceed = FALSE;
$errorWoensdagVrijdag = "<div id='row_form_dropdown'>Error Message</div>";
}
The dates are being inserted using a form. Everything is being checked just fine, when I try and select date and time on friday the 22nd before 12:30 i'll receive an error message. But should I check it on Friday the 27th it'll just pass through without any complications.
I'm at a bit of a loss here since to me it seems that it should just be working. I've seen some remarks in regards to the PHP version, i'm running PHP Version 5.2.9.
Anyone that would like to offer their assistance is more than welcome.