title: How to display selected value in the bootstrap multiple dropdown from the database
body: <p>I am using <em>CodeIgniter</em>, I have bootstrap multiple select <em>dropdowns</em>. I am getting all the drop-down name in the <em>dropdown</em> list.</p>
  
  <p>Now I am on the edit page, I have to display the selected value in the drop-down.</p>
  
  <p>Would you help me out in this issue?</p>
  
  <p>I have data in a database like</p>
  
  <pre><code>venue_id
  1,4
  5,6,7
  1
  10,15,4,9
  </code></pre>
  
  <p><strong>view</strong></p>
  
  <pre><code>&lt;select name="venue_id[]" id="venue_id"  multiple="multiple" class="selectpicker form-control"&gt;
  &lt;?php
    foreach($venue as $list){
      echo '&lt;option value="'.$list-&gt;venue_id.'"&gt;'.$list-&gt;venue.'&lt;/option&gt;';
    }  
  ?&gt;
  </code></pre>