<div class="table-responsive"> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <thead> <tr> ` <th>Student No</th> <th>First Name</th> <th>Last Name</th> <th>Score</th> </tr> </thead> <tbody> <?php //echo '<br>'.$sid; $sub_id = $grading->getSubjectId($sid); $course_id = $grading->getCourseId($sid); $sec_id = $grading->getSectionId($sid); $x = 0; foreach ($grading->gradeStudent($sub_id, $t_id, $sec_id) as $b) { ?> <tr> <td><?php echo $b['student_id']; ?> </td> <td><?php echo $b['first_name']; ?> </td>