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.144.235.195


Current Path : /var/www/html/convocation/
Upload File :
Current File : /var/www/html/convocation/sikkimstuddet.php

<?php
    function getStudDetailsSikkim($aobj_context){

        $regno = $aobj_context->mobj_data["regno"];

        $query = "SELECT dcstud.fname, dctran.ftranid, DATE_FORMAT(dctran.fpaydate,'%d/%m/%Y')AS fpaydate FROM 
                dcstud dcstud INNER JOIN dctran dctran ON 
                dcstud.fregno = dctran.fregno WHERE dctran.fregno = '{$regno}'";
        $result = $aobj_context->mobj_db->GetRow($query); 

        if($result){
            echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
        }else{
            
            echo $aobj_context->mobj_output->ToJSONEnvelope($result,-1,"failure");
        }
    }

    function saveTransactionDetailsSikkim($aobj_context){

        $regno = $aobj_context->mobj_data["regno"];
        $sname = $aobj_context->mobj_data["sname"];
        $transtion_no = $aobj_context->mobj_data["transtionno"];
        $transtion_date = $aobj_context->mobj_data["transtiondate"];

        $query = "UPDATE dctran set ftranid = '{$transtion_no}', fpaystatus = 'success',
        fpaydate = date_format(str_to_date('{$transtion_date}','%d/%m/%Y'),'%Y-%m-%d') 
        where fregno = '{$regno}'";
        $result = $aobj_context->mobj_db->Execute($query); 
        
        if($result){
            $msg['msg'] = "Updated Successfully";
            echo $aobj_context->mobj_output->ToJSONEnvelope($msg,0,"success");
     
        }else{
            $msg['msg'] = "Failed to Update";
            echo $aobj_context->mobj_output->ToJSONEnvelope($msg,-1,"failure");
            
        }
    }
?>