Instead of this:
if($today >= $dateOne && $dateOne != '0000-00-00')
{
run some code
}
elseif($today >= $dateTwo && $dateTwo != '0000-00-00')
{
run some code
}
elseif($today >= $dateThree && $dateThree != '0000-00-00')
{
run some code
}
elseif($today >= $dateFour && $dateFour != '0000-00-00')
{
run some code
}
else
{
run this code
}
...which goes up to $dateEleven, is there a better why to do this? I figure there has to be a better way than to have all of these elseif statements.
$dateOnein code block one,$dateTwoin codeblock two etc?$dateOneetc, are they in the formatYYYY-MM-DD? If so, you can't use>=to compare them.