title: Get the value from database in selecte tag HTML PHP MySQL
body: <p>I'm beginner in PHP MySQL. I successfully get the value from database in <strong>INPUT</strong> type but I can't get the data from database in <strong>SELECT</strong> type: </p>
  
  <p>Here is my sample edit form where <strong>Gender</strong> &amp; <strong>User Type</strong> can't output the value from my database:</p>
  
  <p><a href="https://i.stack.imgur.com/zcAMk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zcAMk.png" alt="enter image description here"></a></p>
  
  <p>and here is data from the table I created:
  <a href="https://i.stack.imgur.com/YNjKU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YNjKU.png" alt="enter image description here"></a></p>
  
  <p>I'm calling the data in my input box by using this code:</p>
  
  <pre><code>&lt;?php $userRow['agentFname']; ?&gt;  //$userRow['ROW NAME IN TABLE'];
  </code></pre>
  
  <p>But I can't call the data where In select box, like <strong>Gender:</strong> and <strong>User Type</strong> here is my code of <strong>Select box.</strong> </p>
  
  <pre><code>   &lt;select class="form-control" name="aGender" &gt;
             &lt;option selected disabled&gt;*Gender&lt;/option&gt;
            &lt;option&gt;Male&lt;/option&gt;
            &lt;option&gt;Female&lt;/option&gt;
  
     &lt;/select&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  
     &lt;select class="form-control" name="utype" &gt;
             &lt;option selected disabled&gt;*User Type&lt;/option&gt;
            &lt;option&gt;Agent&lt;/option&gt;
            &lt;option&gt;Team Leader&lt;/option&gt;
            &lt;option&gt;Admin&lt;/option&gt;
          &lt;/select&gt;
  </code></pre>