I dont understand forloops and this is my attempt. lol
does any one know how to do a loop so that it adds a option for every year that is greater than the current year but no more than 5 years ahead?
- Code: Select all
for($yearnum = date("Y", time()); $yearnum < $yearnum+2; $yearnum++)
echo " <option>$yearnum</option>";
i just really dont understand this