I am fetching data from the database and showing in the table like this.
<?php foreach($blogs->result() as $blog): ?>
<td><?php echo $blog->title;?></td>
<td><?php echo $blog->description;?></td>
<?php endforeach; ?>
But I want to show the drop-down from another table so how can i achieve that?
<?php foreach($blogs->result() as $blog): ?>
<td><?php echo $blog->title;?></td>
<td><?php echo $blog->description;?></td>
<td>
<div class="form-group">
<select name="orderStatus" id="orderId" class="form-control">
<option value="<?php echo $name['user_id']; ?>"><?php echo $name['user_name'];?></option>
</select>
</div>
</td>