ok
Direktori : /home2/selectio/www/subamangala/admin/api/waste-files/ |
Current File : /home2/selectio/www/subamangala/admin/api/waste-files/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); } ?>