I am making a website for a store that wants to show the next open sunday dynamically based on date. I managed to make a script that does so but only tests one date. I want to test 10 dates without putting them in a database. This is my script.
<?
$mydate = '2012-12-23';
$curdate = date('Y-m-d');
if($curdate == $mydate)
{
echo 'Vandaag';
}
elseif($curdate > $mydate)
{
echo '26 december';
}
elseif($curdate < $mydate)
{
echo '23 december';
}
else
{
echo 'Koopzondag niet ingeladen';
}
?>