I am having an issue with drop box in codeigniter. I am not sure why the data is not populating on all my drop boxes, this is an example of one of my drop boxes.
<div class="form-group">
<label class="col-sm-7 control-label">Scheduled Area</label><br>
<?php $Scheduled_Area=$e->Scheduled_Area;
$db=array('Outbound','Inbound','Claims');?>
<div class="col-md-5" >
<select name="Scheduled_Area" class="form-control">
<?php foreach($db as $d ){
if($department==$d){ ?>
<option value="<?php echo $d?>" selected="selected"><?php echo $d?></option>
<?}else{?>
<option value="<?php echo $d?>"><?php echo $d?></option>
<?php } }?>
</select>
</div>
</div>