title: Fetch data from database and show in select box Wordpress
body: <p>I am creating custom WordPress plugin where I want to fetch data from database and show it in select box. I have provided screen shot of table .</p>
  
  <p>Dropdown should be in this format.</p>
  
  <pre><code>&lt;select class="smsselect"&gt;
      &lt;option value="1"&gt;Select Country&lt;/option&gt;
      &lt;option value="2"&gt;Select Pakistan&lt;/option&gt;
      .....
      &lt;/select&gt;
  </code></pre>
  
  <p>Table name > WP_country > <a href="https://i.stack.imgur.com/rVPGW.png" rel="nofollow noreferrer">Screenshot of table</a></p>
  
  <p>Select Box >  <a href="https://i.stack.imgur.com/G2Loq.png" rel="nofollow noreferrer">Screenshot of select box</a></p>