ok
Direktori : /home2/selectio/public_html/vijay-gases/api/ |
Current File : /home2/selectio/public_html/vijay-gases/api/get-values-api.php |
<?php include"../config/config.php"; if($_POST['type']=="customer_cylinders"){ $customer_id = $_POST['customer_id']; $where=""; if($customer_id!=''){ $where=" WHERE customer_id=$customer_id"; } $statement = $pdo->prepare("SELECT * FROM `tbl_product` $where"); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); $totalrow = $statement->rowCount(); if($result){ $response['data']=$result; $response['error']=false; $response['message']="Customers Cylinder Fetched Successfully"; }else{ $response['error']=true; $response['message']='failed'; } echo json_encode($response); } ?>