Kind of a dumb question…
Do you[I] have
I have a while statement that runs until $startdate = $enddate, in this example I’ll use the following:
$startdate = 01/03/2006
$enddate = 01/10/2007
However when I run this it goes like this:
01/03/2006 – 01/10/2007
01/04/2006 – 01/10/2007
01/05/2006 – 01/10/2007
01/06/2006 – 01/10/2007
01/07/2006 – 01/10/2007
01/08/2006 – 01/10/2007
01/09/2006 – 01/10/2007
01/10/2006 – 01/10/2007
Then the while statement ends.
As you can see it’s startdate does not = enddate because it’s still a year back. I was impressed the comparison worked so well, until I noticed the years are not comparing.
Any thoughts advice?