How to handle choose all options in a select box on back-end?
I'm asked to give users an option to choose all areas and routes in a select box
How to design database for this purpose ?
How I can handle foreign-key based relations if I store this as a record ?
id | name | area_id | country_id |
0 | all | null | null |
1 | Route 1 | 12 | 10 |
<select name="routes" >
<option value="0">All</option>
<option value="1">Route 1</option>
<option value="2">Route 2</option>
..
..
</select>