title: PHP Get value from database into selectbox
body: <p>I have a problem to show my database values into a select box.</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;select name="bugsolver"&gt;
  &lt;?php 
    if(count($yourBugs) &gt; 0) 
    {
      foreach( $emails as $key=&gt; $singleEmail)
      { ?&gt;
    &lt;option value="&lt;?=$singleEmail['email']?&gt;" selected='selected'&gt; &lt;?php echo $singleEmail['email']?&gt;&lt;/option&gt;";
  
  &lt;?php }
  } ?&gt;
  
  &lt;/select&gt;
  </code></pre>