fhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhd dfhdfhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhdfh bnmbertsurrttrtrtrtrjhjhjjhjhhjhjhjhf'tdfg php sh-3ll

HOME


sh-3ll 1.0
DIR:/home/u1105814/www/
Upload File :
Current File : /home/u1105814/www/profile.php
<?php
header('Access-Control-Allow-Origin: *');
require_once('koneksi.php');
$myArray = array();
$user_id=$_POST["user_id"];



$getData2 ="SELECT COUNT(*) as tot_dta,SUM(b.plafond) as tot_plat,c.* from pengajuan a LEFT JOIN pengajuan_det b on a.no_pengajuan=b.no_pengajuan left join pengguna c on a.cadang2=c.user_id where a.status=1 and c.user_id=$user_id";
            $result1 = mysqli_query($conn,$getData2); 
            $r1 = mysqli_fetch_array($result1);
            
            $userId=$r1['user_id'];
            $nama=$r1['nama'];
            $username=$r1['username'];
            $photo=$r1['photo'];
            $noa=$r1['tot_dta'];
            $penc=$r1['tot_plat'];
            
            $resp["userid"] = $userId;  
            $resp["nama"] = $nama;
            $resp["username"] = $username;
            $resp["photo"] = $photo;
            $resp["penc"] = $penc;
            $resp["noa"] = $noa;
            
    header('content-type: application/json');  
  
    $response["response"]=$resp;  
    echo json_encode($response);  
  
    @mysqli_close($conn);  
?>