I need to change the table with an option when pressing the year , so that they show me those records, is there any way that could produce it? I am using php and mysql, in my mysql basically I have a table with an id, name, age, it is a test table for another project, Thank you very much in advance!
<select name="" id="">
<option value="">Año</option>
<option value="">2021</option>
<option value="">2022</option>
<option value="">2023</option>
<option value="">2024</option>
<option value="">2025</option>
</select>
You can use javascript onchange event
And through a function on your page itself and using ajax , you can reload the combo with the new content.
And in your loadNewSel.php file, to which you have passed a parameter, you use that parameter to create the new selection.
This is an incomplete example of how you could do it, but it can serve as a guide.