I have a <select> dropdown with which I want to populate the previous 20 years as well as the current year. How would I go about this?
I have a <select> dropdown with which I want to populate the previous 20
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It would be simpler to use strtotime()
You can also use this inside a loop
Where
$iis the index in the loop.