I'm trying to build a chart to show student progress, showing only the last handful of weeks (mondays) as m/d. Here is what I've tried:
$here = date( 'W', strtotime('this Monday'));
$then = date('W', strtotime('-70 days', strtotime('this Monday')));
for($i = $then; $i<=$here; $i++)
{
$temp = date('W', strtotime($i));
$tempa = strtotime($temp);
$newd = date('m/d', $tempa);
list .=",".$newd);
}
this current iteration gives me a series of 01/01. Can someone help? Thanks.