title: how to select something from the drop down already saved in a database using php?
body: <p>I have this drop-down list of countries:</p>
  
  <pre><code>&lt;select name="country"&gt;
      &lt;option value=""&gt;Country...&lt;/option&gt;
      &lt;option value="Afganistan"&gt;Afghanistan&lt;/option&gt;
      &lt;option value="Albania"&gt;Albania&lt;/option&gt;
      &lt;option value="Algeria"&gt;Algeria&lt;/option&gt;
      &lt;!-- Removed several options as they are not needed for question --&gt;
      &lt;option value="Zaire"&gt;Zaire&lt;/option&gt;
      &lt;option value="Zambia"&gt;Zambia&lt;/option&gt;
      &lt;option value="Zimbabwe"&gt;Zimbabwe&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>When a user edits their profile, I want the country that the user selected (in the database) to be selected by default.</p>
  
  <h2>Example</h2>
  
  <p>When the user registered, <code>Egypt</code> was selected. When the user edits their profile, I want this drop-down list to select <code>Egypt</code> by default (until changed).</p>