title: Populate dropdown list get data from different MySQL tables
body: <p>I need your help to solve a silly problem.
  I have 2 tables in my database (contents and categories).</p>
  
  <p>I have populated my MySQL table called "categories", and now I want to see in a form the old category stored in the database while I modify it to a new one.</p>
  
  <p>Unfortunately what I wrote shows only the list of the categories get from the database table.</p>
  
  <pre><code>&lt;select name="PostedCat"&gt;
      &lt;?php 
  
      $query_category = "SELECT * FROM categ";
      $result_category =  mysql_query($query_categ) or die (mysql_error());
  
  
      while($categ = mysql_fetch_assoc($result_category)){        
      ?&gt;
          &lt;option value="&lt;?php echo $categ['cat_title']; ?&gt;" &gt;&lt;?php echo $categ['cat_title']; ?&gt;&lt;/option&gt;
      &lt;?php
      }                       
      ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>With this code I can see the categories stored in the database, but how can I get the "old" selected one? The stored one?</p>
  
  <p>Hope in some help, but I'm blind at the moment.</p>
  
  <p>Thank you in advance.</p>