Ok, I tried the exact code you gave, and that did not work datawise, but did stop the errors. It doesn't process the "else" statement and just runs the first statement for everything. What was working data wise but with the error was this,
if (date("m", strtotime($listTeam->sdesk_date[$i])) == '08') {
$block10->cellRow($projectDetail->pro_aug[0]);
} else {
echo "Incorrect";
}
I am not sure why the $date = "2004-08-17"; specfication did not process right, but the $listTeam one I have up there does. The $listTeam specification merely is the same thing as $date but is being pulled from a mysql database that has 2004-08-17 stored in one of its columns. It is stored just as you see it with no changes. Any ideas?