I have set to constants, a start year and an end year,
so i have built a while loop on the condition that
if the start year is < than the current year increment until true.
i have problem yerine bu gibi yukarı gidiyor olmasıdır:
1999,2000,2001,2002,2003,2004
bu gibi gider:
1999,2001,2003,2005,2007,2009
İşte benim kod:
function yearCount()
{
$yearBegin = START_YEAR;
$yearCurrent = CURRENT_YEAR;
while($yearBegin < $yearCurrent){
echo "<option value=\"".$yearBegin++."\">".$yearBegin++."</option>";
}
}
herhangi bir fikir son derece mutluluk duyacağız.