Ok, After messing around loads I still dont have this working reliably.
What im currently doing to evaluating if $band == 4 and $SD >= $StartDate then do something, else drop into the switch. However it just doesnt work
I have
$band = 4;
$SD = 2006-11-07;
$StartDate = 2006-06-09;
if(($band==4) && ($SD >= $row['sdate']))
{//for some reason it drops in here}
else{
//do my switch in here
}
I cant for the life of me see how the above evaluates as true but it must be for it to drop inside of the if statment.
Help
Thanks
Chris