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