I am fairly new to php and regularly run into probs. The one I'm having at the moment is I have writen a simple script to dynamicly display each season of the year, however it doesn't seem to display the right one. I have tried to fix the problem but no matter what I do it keeps displaying summer when it should be displaying Autumn. I know this is most likely an easy fix I just can't find it. Not though lack of trying either.
thanks
Paul Kovac
<?PHP
$date = date("d F");
if ($date >= "01 December" && $date < "01 March")
{
echo "It's Summer";
}
elseif ($date >= "01 March" && $date < "01 June")
{
echo "It's Autumn";
}
elseif ($date >= "01 June" && $date < "01 September")
{
echo "It's Winter";
}
elseif ($date >= "01 September" && $date < "01 December")
{
echo "It's Spring";
}
?>