Populate checkbox from database
<p>I have two tables first one consist of id`s which are associated with names
1 - Car
2 - Train
3 - Plain
..etc</p>

<p>The second table consists of two fields user_id and an id from the first table (for example 1)
1 2
1 3</p>

<p>I`m trying to repopulate selected checkboxes when user goes to the page</p>
