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 : 52.14.66.242


Current Path : /var/www/html/admission/src/
Upload File :
Current File : /var/www/html/admission/src/updateIAMarks.php

<?php
function getIAMarksSub($aobj_context){
    $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); 
    $univcode = $aobj_context->mobj_data['univcode'];
    $deggrp = $aobj_context->mobj_data['deggrp'];
    $degree = $aobj_context->mobj_data['degree'];
    $sem = $aobj_context->mobj_data['sem'];

//   var_dump($deggrp,$degree,$sem,"vikkk");
//   die();

    // if($college === "All"){
    //     $collegeCond = "fcollcode BETWEEN '0' AND 'Z' ";
    // }else{
    //     $collegeCond = "fcollcode='{$college}'";
    // }
    if($degree === "All"){
        $degreeCond = "d.fdegree BETWEEN '0' AND 'Z'";
    }else{
        $degreeCond = "d.fdegree='{$degree}'";
    }
    if($sem === "All"){
        $semCond = "d.fexamno BETWEEN '0' AND 'Z'";
    }else{
        $semCond = "d.fexamno='{$sem}'";
    }
// var_dump($degreeCond ,$semCond,"vikkk");
// die();
    $query = "SELECT DISTINCT s.fsubcode,s.fsubname FROM degree d INNER JOIN `subject` s
    ON s.fdegree = d.FDEGREE AND s.fexamno=d.fexamno WHERE $degreeCond AND $semCond ";
    $result = $aobj_context->pobj_db->GetAll($query);
//     var_dump($result);
//    die();
   
    if($result){
        echo $aobj_context->mobj_output->TOJSONEnvelope($result,0,"success");
        return;
    }else{
        $arr['msg'] = "Data not found";
        echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failure");
        return;
    } 
}


?>