php set selected option code example
Example: php set selected option
//use this method while you are looping throw the row.
<option value="myValue"<?=$row['value'] == 'myValue' ? ' selected="selected"' : ''?>>myValue</option>
//use this method while you are looping throw the row.
<option value="myValue"<?=$row['value'] == 'myValue' ? ' selected="selected"' : ''?>>myValue</option>