ok
Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/vijay-gases/api/ |
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/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); } ?>