php set selected option
//use this while you are looping throw the row. <option value="myValue"<?=$row['value'] == 'myValue' ? ' selected="selected"' : ''?>>myValue</option>
how to set selected value in dropdown using php
how can select boc update form in php