Re: drop down list of years puzzles me
| From: | Jason Wong | Date: | Tue, 20 Jan 2004 23:09:51 +0000 |
| Subject: | Re: drop down list of years puzzles me | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175227@lists.php.net to get a copy of this message | ||
On Wednesday 21 January 2004 07:10, Bill Green wrote:
> for ($y=$curr_year; $y < $range; $y++) {
> echo "<option value={$y}>".$y."</option>\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 what do you get?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"Nine years of ballet, asshole."
-- Shelly Long, to the bad guy after making a jump over a gorge that he
couldn't quite, in "Outrageous Fortune"
*/