On Wednesday, January 21, 2004, at 10:10 AM, Bill Green wrote:
This doesn't to create a drop down box of years:
$curr_year = intval(date('Y'));
$range = 10;
for ($y=$curr_year; $y < $range; $y++) {
echo "".$y."\n";
}
Stop and read the for loop. You're saying "starting with the current
ye
On Wednesday 21 January 2004 07:10, Bill Green wrote:
> for ($y=$curr_year; $y < $range; $y++) {
> echo "".$y."\n";
> }
>
> When I check for errors:
> $curr_year = 2004
> $curr_year is an integer
> $range = 10
> $curr_year + $range = 2014
> $y = 2004
$y < $range
Do the substitution and wha
2 matches
Mail list logo