ok
Direktori : /home2/selectio/public_html/subamangala/admin/api/ |
Current File : /home2/selectio/public_html/subamangala/admin/api/trips-pickup-drop-city-api.php |
<?php include "../config/config.php"; if($_POST['type']=="get_pickup_drop_cities"){ $city = $_POST['city']; $where=""; if($city!='All' && $city!=''){ $where="WHERE id != $city"; } $statement = $pdo->prepare("SELECT * FROM `tbl_cities` $where"); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); $totalrow = $statement->rowCount(); if($result){ $response['data']=$result; $response['error']=false; $response['message']="City Details Fetched Successfully"; }else{ $response['error']=true; $response['message']='failed'; } echo json_encode($response); } ?>