<?php 
    $students = $this->db->get_where('student' , array('transport_id' => $param2))->result_array();
?>
    <div class="table-responsive">
        <table id="dataTable1" width="100%" class="table table-striped table-lightfont">
            <thead>
                <tr>
                    <td>#</td>
                    <td><?php echo get_phrase('name');?></td>
                    <td><?php echo get_phrase('email');?></td>
                    <td><?php echo get_phrase('phone');?></td>
                    <td><?php echo get_phrase('class');?></td>
                </tr>
            </thead>
            <tbody>
            <?php 
                $count = 1;
                foreach($students as $row):
            ?>
          <?php $class_id = $this->db->get_where('enroll', array('student_id' => $row['student_id']))->row()->class_id;?>
                <tr>
                    <td><?php echo $count++;?></td>
                    <td><?php echo $row['name'];?></td>
                    <td><?php echo $row['email'];?></td>
                    <td><?php echo $row['phone'];?></td>
                    <td><?php echo $this->db->get_where('class' , array('class_id' => $class_id))->row()->name;?></td>
                </tr>
            <?php endforeach;?>
            </tbody>
        </table>
    </div>