Hey,
Ik heb nu een loop die de jaren in een selectie veld zet, maar nu krijg ik het zo:
1900
1901
...
2012
Maar ik wil het zo
2012
2012
...
1900
Wie kan me helpen?
Ik heb nu een loop die de jaren in een selectie veld zet, maar nu krijg ik het zo:
1900
1901
...
2012
Maar ik wil het zo
2012
2012
...
1900
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/for"]for[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$year[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1900[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$year[/COLOR] [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]2001[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$year[/COLOR][COLOR= #007700]++)
{[/COLOR]
?>
<option value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$year[/COLOR][COLOR= #007700];[/COLOR] ?>">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$year[/COLOR][COLOR= #007700];[/COLOR] ?></option>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?> Wie kan me helpen?



Vind het alleen grappig om te zien
en deze met asort() zelfs omdraaaien...