title: Pre-selected drop down list value from MySQL database
body: <p>Though I have researched, I couldn't find any solution for this. I need to get the database value ("Default") as the pre-selected value of the drop down list.</p>
  
  <pre><code>&lt;select name="listCustomer" id="listCustomer"&gt;
      &lt;?php 
      $sql = mysqli_query($connection,"SELECT customer_name FROM customers");
      while ($row = mysqli_fetch_array($sql,MYSQLI_ASSOC)){
      echo "&lt;option value=\"" .   $row['customer_name'] . "\"&gt;" . $row['customer_name'] . "&lt;/option&gt;";}
      ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Can you please help me on this?</p>