ok
Direktori : /home2/selectio/public_html/obnovit-tracking/api/ |
Current File : /home2/selectio/public_html/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); } ?>