<tr> <th>No.</th> <th width="15%" align="left"><input type="checkbox" name="chkall" id="chkall" onclick="return checkall('selector[]');">Officer #</th> <th>First Name</th> <th>Last Name</th> <th>Details</th> </tr> </thead> <tbody> <?php //$account_username = $_SESSION['ACCOUNT_USERNAME']; //$account_password = $_SESSION['ACCOUNT_PASSWORD']; //if($account_password!= Null) { $officer = new Officer(); $officerList = $officer->listOfOfficer(); foreach ($officerList as $list) { //echo '<tr>'; echo '<td width="5%" align="center"></td>'; echo '<td width="15%"><input type="checkbox" name="selector[]" id="selector[]" value="' . $list->officer_id . '"/>'; echo '<td width="35%" >' . $list->firstname . '</td>'; echo '<td width="25%" >' . $list->lastname . '</td>'; echo '<td><a href = "index.php?view=view&officerId=' . $list->officer_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> View</a></td>'; echo '</tr>'; } //} //} ?> </tbody>