$objStudentCls->updateAttendenceForDate($atdDate, $nStandardId, $allStudentnGRNO, $forStatus, implode(" | ", $tsubject)); } else { $objStudentCls->setAttendenceForDate($atdDate, $nStandardId, $allStudentnGRNO, $forStatus, implode(" | ", $tsubject)); } if ($isAll == null) { echo " POINT-1 "; if ($forStatus == 1) { echo " POINT-2 "; $status = 0; } $allStudentnGRNO = $objStudentCls->getnGRNOFromStandard($nStandardId); while ($detail = mysqli_fetch_assoc($allStudentnGRNO)) { extract($detail); /* if ( isset($_POST[$nGRNO]) ) { $grChecked = $_POST[ $nGRNO ] ; $status = 1 ; } else { $status = 0 ; } */ if (!isset($_POST[$nGRNO])) { // $grChecked == null //echo " POINT-4 + $nGRNO " ; $objStudentCls->updateExistAttendence($atdDate, $nStandardId, $nGRNO, $status); } } }