ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/www/lilyexpresslive/software/admin/get_customer_data.php

<?php 
ob_start();
session_start();
include("inc/config.php");

    $cust_id = $_POST['id'];
                        	$statement = $pdo->prepare("SELECT * FROM tbl_customer where cust_id='$cust_id'");
							$statement->execute();
							$result = $statement->fetchAll(PDO::FETCH_ASSOC);
                             foreach ($result as $row) {
                                    $address = $row['cust_address'];
                                    $cust_phone = $row['cust_phone'];
                                    
                                    $city = $row['cust_city'];
                                    $state = $row['cust_state'];
                                    $pincode = $row['cust_zip'];
                                    $destination = $row['destination_city'];
                              } 
                              
                              $datas[] = array('address' => $address,'mobile'=>$cust_phone,'city'=>$city,'state'=>$state,'pincode'=>$pincode,'destination'=>$destination);
                              
                         echo json_encode($datas);     
?>

Zerion Mini Shell 1.0