ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/obnovit-tracking/api/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/obnovit-tracking/api/get-pf-structure.php

<?php include"../config/config.php";

if($_POST['type']=="get_pf_structure"){
    $pf_type_id = $_POST['pf_type_id'];

   
    
        $statement = $pdo->prepare("SELECT * FROM `tbl_pf_details` WHERE pf_type_id=$pf_type_id");
		$statement->execute();
		$result = $statement->fetchAll(PDO::FETCH_ASSOC);
		$totalrow = $statement->rowCount();
		
		if($result){
		    $response['data']=$result;
		    $response['error']=false;
		    $response['message']="pf details fetched Successfuly";
		}else{
		    $response['error']=true;
		    $response['message']='failed';
		}
		
		echo json_encode($response);
 
}
?>

Zerion Mini Shell 1.0