Ok, so here’s what I have… any idea where I’m going wrong? Because it’s not working.
[code=php]
<td><select name=”date_<?php echo($eli); ?>”><?php
$lastSaturday = strtotime(‘Saturday’);
$lasttime = strtotime(‘-30 days’, $lastSaturday);
for($ci=0;$ci<90;$ci++){
$oldTime=$lastTime;
if(($ci+1)==1){
$daysAhead=’+’.($ci+1).’ day’;
}else{
$daysAhead=’+’.($ci+1).’ days’;
}
$lastTime=strtotime($daysAhead,$oldTime);
?>
<option value=”<?php echo(date(‘m-d-Y’,$lasttime)); ?>”><?php echo(date(‘m/d/y’,$lasttime)); ?></option><?php
} ?></select></td>
It just gives me this for every single line:
[code=html]<option value=”03-29-2012″>03/29/12</option>
I’m going cross-eyed from all the coding I’ve been doing lately so I can’t spot my mistake(s)… Any help would be greatly appreciated.