title: PHP show drop down selected based on value
body: <p>I want to show a drop down selected for some value which is coming from database.</p>
  
  <pre><code>    &lt;select name="plans"&gt;
         &lt;option&gt;MAP&lt;/option&gt;
         &lt;option&gt;CP&lt;/option&gt;
         &lt;option&gt;CPA&lt;/option&gt;
         &lt;option&gt;CPF&lt;/option&gt;
      &lt;/select&gt;
  </code></pre>
  
  <p>Reading a value from database in PHP/Mysql, lets say "CPA", how do I show this option selected?</p>