Concatenate date question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

mikes1471
Forum Commoner
Posts: 88
Joined: Sat Jan 24, 2009 3:29 pm

Re: Concatenate date question

Post by mikes1471 »

I'll give it a read now, some bedtime reading for me lol thanks again
User avatar
Skoalbasher
Forum Contributor
Posts: 147
Joined: Thu Feb 07, 2008 8:09 pm

Re: Concatenate date question

Post by Skoalbasher »

mikes1471 wrote:I'll give it a read now, some bedtime reading for me lol thanks again

Code: Select all

 
$a = date("Y"); // current year
 
echo "<select name=\"year\" id=\"year\">    ;
while($a >= 1900)
{
     echo "<option value=\"".$a."\">$a</option>";
     echo $a--;
}
echo "</select>";
 
Post Reply