my brain isn't working properly today. i have a start date and an end date in the db and need to get all the dates in between. my function to add a day is working fine... the problem is that when i'm testing to see if it's reached the end date it's not catching.
this is the code that's not working: ($new_date is the date produced after adding on a day)
echo"New Date = $new_date ||| End Date = $end ||| "; //results
if (strcasecmp($end, $new_date))
echo "SAME<p>";
else
echo "NOT the SAME<p>";
here's a bit of the display so you can see that at one point they do match and others don't but it all says it's the same:
New Date = 2004-01-09 ||||| End Date = 2004-1-10 ||| SAME
New Date = 2004-01-10 ||||| End Date = 2004-1-10 ||| SAME
New Date = 2004-01-11 ||||| End Date = 2004-1-10 ||| SAME
🙁