Prevent double options in dropdown list
<p>in my dropdown list I insert a value from a mySQL query. This Value is my selected Option. 
The problem is, that he duplicate my selected Value (it is logical because I create "6 Options" but the user only should have "5 Options").</p>

<p>How can I prevent this?</p>

<p>This is my Code:</p>

<pre><code>  echo "&lt;select id='qty' name='qty' onchange='this.form.submit()'&gt;";
  echo "&lt;option value='".$row['a_qty']."' selected&gt;".$row['a_qty']."&lt;/option&gt; ";
  echo "&lt;option value='1'&gt;1&lt;/option&gt;";
  echo "&lt;option value='2'&gt;2&lt;/option&gt;";
  echo "&lt;option value='3'&gt;3&lt;/option&gt;";
  echo "&lt;option value='4'&gt;4&lt;/option&gt;";
  echo "&lt;option value='5'&gt;5&lt;/option&gt;";
  echo "&lt;/select&gt;";
  echo "&lt;script&gt;
</code></pre>

<p>And my Output:</p>

<p><a href="https://i.stack.imgur.com/MOoVV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MOoVV.png" alt="enter image description here"></a></p>