How can I select the option based on the value from db with php .For example;
<select>
<option value="1">Val1</option>
<option value="2">Val2</option>
<option value="3">Val3</option>
<option value="4">Val4</option>
<option value="5">Val5</option>
</select>
when value=3 change
<option value="3" selected="selected">Val3</option>
How can I do this with php&mysql?