ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/public_html/lilyexpresslive/software/admin/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/public_html/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);     
?>

Zerion Mini Shell 1.0