I'm trying to loop through and add cells to an HTML table, starting with a start date and adding one day to the start date with each iteration for 4 loops:
$DayCount = 0;
while ($DayCount < 5) {
echo "<td>";
echo date('m/d/Y', strtotime('+$DayCount days', strtotime($UpWeekStart)));
echo "</td>";
$DayCount = $DayCount + 1;
}
Is my syntax wrong? $UpWeekStart is a PHP variable containing user-selected date.