Auto select radio button from database value

hi guys i really need your help! this is about radio button and database. i have radio button html …
<tr class=“tr_a”>
<td align=“center”>1</td>
<td> Formulir Pendafataran</td>
<td align=“center”><input type=“radio” name=“dat[satu]” id=“radio” value=“Ada” /></td>
<td align=“center”><input name=“dat[satu]” type=“radio” id=“radio2” value=“Tidak” /></td>
</tr>
<tr class=“tr_b”>
<td align=“center”>2</td>
<td> Formulir Keikutsertaan</td>
<td align=“center”><input type=“radio” name=“dat[dua]” id=“radio” value=“Ada”/></td>
<td align=“center”><input name=“dat[dua]” type=“radio” id=“radio2” value=“Tidak”/></td>
</tr>
i processed it to database and i save all the value in “field”, ex. “Ada,Ada”.
the problem is when i want to edit the page, i want my all my radio button selected based on database value or the field, what should i do from guys? please help!?

Retreive the data from the database, and then add

selected="selected"

to the selected option.

can u explain me clearer step?