0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.141.21.106


Current Path : /var/www/html/collportal_new/src/
Upload File :
Current File : /var/www/html/collportal_new/src/deletecreatedclass.php

<?php
function cdeletecreatecls($aobj_context){
    $teachname = $aobj_context->mobj_data["teach"];
    $clsname = $aobj_context->mobj_data["cls"];
    $collcode = $aobj_context->mobj_data["collcode"];
    $classid = $aobj_context->mobj_data["clsid"];
    $query = "DELETE FROM attclass WHERE fcollcode='{$collcode}' AND 
             fclassname='{$clsname}' and fclassid='{$classid}'";
    $result = $aobj_context->mobj_db->Execute($query);
    if($result){
              $arr['msg']='Deleted successfully';
              echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success"); 
        }else{
              $arr['msg']='Failed to delete';
              echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"failure");
        return;
    }
}

?>