<div class="container-fluid">
<div class="row">
<div class="col-sm-12">

<div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>SID</th>
<th>Sub.Id.</th>
<th>HeadId</th>
<th>Marks</th>
<th>ID</th>
</tr>
</thead>
<tbody>
<?php  
$sid=576;
$sub_id=92;
$all_log=$this->ExamModel->error_log($sid,$sub_id);
if($all_log){
foreach($all_log as $log_data){

?>
<tr>
<td><?php echo $log_data['student_id'];?></td>
<td><?php echo $log_data['subject_id'];?></td>
<td><?php echo $log_data['exam_head'];?></td>
<td><?php echo $log_data['obtained_marks'];?></td>
<td><?php echo $log_data['id'];?></td>
</tr>
<?php
}
}
?>
</tbody>

</table>
</div>


</div>
</div>
</div>