note 62620 rejected from control-structures.for by bjori

From: Date: Sun, 05 Mar 2006 17:25:53 +0000
Subject: note 62620 rejected from control-structures.for by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-104855@lists.php.net to get a copy of this message
Note Submitter: sitespt at gmail dot com ---- Hello: Please see this: <? for($i = '1900'; $i <= '2010'; $i++; ) { echo "<option value=\"$i\">$i</option>\n\t"; } ?> This displays in a drop-down all years between 1900 and 2010. I would like that 2010 was changed by actual year (2006) and the list could be ordered by last year (2006). I appreciate your help.

« previous php.notes (#104855) next »