title: HTML Select Not Showing All Options
body: <p>I have a form with a dynamic <code>select</code> option inside which is taking its options from a database through PHP. The main problem is that although it is working, it is not showing the first record from database. This is the code:</p>
  
  <pre><code>&lt;select name="elevi" &gt;
      &lt;?
      $sql="Select * from elevi";
      $query=mysql_query($sql)or die(mysql_error());
      $result=mysql_fetch_array($query);
      while($result=mysql_fetch_array($query)){
          echo'&lt;option value="'.$result['id_elev'].'"&gt;'.$result['nume']."".$result['prenume'].'&lt;/option&gt;';
      }
      ?&gt;
  &lt;/select&gt;
  </code></pre>