How to select values from the database to the page with the entire list, select to mark the matching fields as marked?

There is a simple select list:
In the selection and preservation of data is written to database via js and php.

Next, after the person has maintained these values, you need to bring this list to him so that the values that it saved previously are displayed as marked.

As I see it:
1. To display a list with all the select from the database
2. Display a select list which the user stumbles
3. And comparisons, matching select am add a selected attribute?
4. In the end, you should see one list with the already marked fields

Please tell me how to do that?
March 19th 20 at 09:07
1 answer
March 19th 20 at 09:09

Find more questions by tags Web DevelopmentJavaScriptPHPAJAX