title: Create a list from SQL database using HTML/PHP
body: <p>Im trying to create a drop down list/menu of users from my SQL database table. Could anyone help me with the code please? The code below is just for a normal list with options 1 &amp; 2. How do i make the list retrieve all the items in a specific table using html/php/sql. Sorry im not very experienced with this, thanks in advance.</p>
  
  <pre><code>&lt;select name="user" id="user"&gt;
  &lt;option value="a" selected="selected"&gt;1&lt;/option&gt;
  &lt;option value="b"&gt;2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>