She really couldn't think of another way to count down a year...? echo '<option value="'.date('Y').'">'.date('Y').'</option>'; for ($i=1; $i<=100; $i++) { $year_wanted='-'.$i.' year'; $year_inpast=date('Y',strtotime($year_wanted)); echo '<option value="'.$year_inpast.'">'.$year_inpast.'</option>'; }
No comments:
Post a Comment