<div class="table table-responsive "> <table class="table table-bordered "> <thead> <tr style="background: #ececec"> <th>Full Name</th> <th>Department</th> <th>User Name</th> <th>Reg. Date</th> <th></th> </tr> </thead class="table table-condensed"> <tbody > <?php require_once 'private/LMS_Engine.php'; $engine = new LMS_Engine(); $founds = $engine->get_all_teachers(); $total = count($founds); $size = 10; $start = $page_num * $size; $i = 0; $disp = 0; foreach ($founds as $found) { if ($start > $i) { $i++; continue; } elseif ($i < $start + 10) { $User_Table = $found; $Staff_Table = $engine->get_staff_by($found['id']); include 'pages/elements/Teacher_Users_Table_Items.php'; $disp++; $i++;