title: Preselect value in a dynamicaly created select box
body: <p>I have maybe a simple problem.
  I have two select boxes which are created dynamically by php. You can choose numbers in this fields. I want that in one select box the the smallest number is "pre"selected and in the other box the largest. </p>
  
  <p>My Code:</p>
  
  <pre><code>$res_little=mysqli_query($db_link,"SELECT DISTINCT number FROM ... ORDER BY number ASC"); 
  $res_large=mysqli_query($db_link,"SELECT DISTINCT number FROM ... ORDER BY number ASC");
  
  &lt;select name="little" id="little"&gt;
      &lt;option&gt;&lt;/option&gt;
          &lt;?php
          while($row = mysqli_fetch_array($res_little))
              {
              echo "&lt;option&gt;";
              echo('&lt;p&gt;'.$row['number'].'&lt;/p&gt;');
              echo "&lt;/option&gt;";
              }
          ?&gt;
  
  &lt;/select&gt;
  
  &lt;select name="large" id="large"&gt;
      &lt;option&gt;&lt;/option&gt;
          &lt;?php
          while($row = mysqli_fetch_array(res_large))
              {
              echo "&lt;option&gt;";
              echo('&lt;p&gt;'.$row['number'].'&lt;/p&gt;');
              echo "&lt;/option&gt;";
              }
          ?&gt;
  &lt;/select&gt;
  </code></pre>