ok
Direktori : /home2/selectio/www/lilyexpresslive/software/admin/ |
Current File : /home2/selectio/www/lilyexpresslive/software/admin/get_pin_data.php |
<?php ob_start(); session_start(); include("inc/config.php"); $pincode_id = $_POST['id']; $statement = $pdo->prepare("SELECT * FROM pincode where id='$pincode_id'"); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { $city = $row['city']; $state = $row['state']; } $datas[] = array('city' => $city, 'state' => $state); echo json_encode($datas); ?>