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


Current Path : /var/www/html/collportal/student/
Upload File :
Current File : /var/www/html/collportal/student/studentNotificationstatus.php

<?php
// include_once ("../consts.php");
// include 'database.php';

// error_reporting(E_ALL);
// ini_set('display_errors', 'on');
function notificationstatus($aobj_context){
    $univcode = $aobj_context->mobj_data['db'];
    $regno = $aobj_context->mobj_data['regno'];

    $query = "SELECT IFNULL(ftitle, '') AS ftitle, IFNULL(fbody, '') AS fbody ,date_format(ifnull(fpushdate,''),'%d/%m/%Y') as fpushdate
              FROM logisys3_comexam.pushnotif WHERE funivcode = '{$univcode}' AND fregno = '{$regno}' ORDER BY fid DESC ";

    $res = $aobj_context->mobj_db->GetAll($query);
//    var_dump($res);die();
    if($res){
        // $arr['ftitle'] = $res['ftitle'];
        // $arr['fbody'] = $res['fbody'];
        // $arr['fpushdate'] = $res['fpushdate'];
        echo $aobj_context->mobj_output->ToJSONEnvelope($res, 0,"Success");
    }else{
        $arr['msg']="Data Not Found";
        echo $aobj_context->mobj_output->ToJSONEnvelope($arr, -1,"Failed"); 
    }
}






// $result = mysqli_query($conn, $query);



// if(mysqli_num_rows($result) > 0 ){
//     $i=0;
//     while($row = mysqli_fetch_assoc($result)){
//         // var_dump($row);
//         $arr[$i]['ftitle'] = $row['ftitle'];
//         $arr[$i]['fbody'] = $row['fbody'];
//         $arr[$i]['fpushdate'] = $row['fpushdate'];
//         $i++;
//     }
// }

// echo json_encode($arr);

?>