<input type="checkbox" name="chkall" id="chkall" onclick="return checkall('selector[]');"> Fullname</th> <th>Address</th> <th>Gender</th> <th>Civil Status</th> <th>Specialization</th> <th>Email Address</th> <th></th> </tr> </thead> <tbody> <?php if ($_SESSION['ACCOUNT_TYPE'] == 'Administrator') { $instructor = new Instructor(); $instructor->listOfinstructor(); loadresult(); } else { $mydb->setQuery("SELECT * \n\t\t\t\t\t\t\tFROM instructor"); loadresult(); } function loadresult() { global $mydb; $cur = $mydb->loadResultlist(); foreach ($cur as $result) { echo '<tr>'; echo '<td width="5%" align="center"></td>'; echo '<td><input type="checkbox" name="selector[]" id="selector[]" value="' . $result->INST_ID . '"/> <a href="index.php?view=edit&id=' . $result->INST_ID . '">' . $result->INST_FULLNAME . '</a></td>'; echo '<td>' . $result->INST_ADDRESS . '</td>';