ok

Mini Shell

Direktori : /proc/self/root/home2/selectio/www/tnpsctestbatch.com/admin/old/api/backups/
Upload File :
Current File : //proc/self/root/home2/selectio/www/tnpsctestbatch.com/admin/old/api/backups/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 and is_editable=1");
		$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