I am new to PHP and have no idea how I want to modify this code to do as I wish. I have an event that we want displayed every single Monday between 7pm - 8pm. How ever the 3rd Monday of the month we do not want this to be displayed.
I realize that I can just hard code the dates I don’t want this displayed, but I would prefer if the code dynamically do this for me.
Any help would be appreciated.
Thanks,
William
[php]
$dayOfWeek = date(“N”);
$timeOfDay = date(“Gi”);
// Monday Event //
if (($dayOfWeek == 1 ) && ($timeOfDay >= 1900 && $timeOfDay <= 2000)){
echo ’
All information here
';
}[/php]