} else { ?> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <thead> <tr> <th>ID </th> <th>Subject</th> <th>Action`</th> </tr> </thead> <tbody> <?php foreach ($load->loadTeacher($_SESSION['uid']) as $a) { ?> <tr class="odd gradeX"> <td><?php echo $a['subject_load_id']; ?> </td> <td><?php echo $a['subject_name']; ?> </td> <td><a class="btn btn-primary" href="view_load.php?id=<?php echo $a['subject_load_id']; ?>