I want to show a drop down selected for some value which is coming from database.
<select name="plans">
<option>MAP</option>
<option>CP</option>
<option>CPA</option>
<option>CPF</option>
</select>
Reading a value from database in PHP/Mysql, lets say "CPA", how do I show this option selected?
Try like this