Uname : Linux V-ShopU01 4.18.0-348.20.1.el8_5.x86_64 #1 SMP Thu Mar 10 20:59:28 UTC 2022 x86_64
Server : Apache/2.4.37 (rocky) OpenSSL/1.1.1k
Whoami : apache
Safe Mode : OFF
DOCUMENT ROOT : /var/www/html/site_shopudiet
Disable Function :
Path : /var/www/html/site_shopudiet/admin/

Server IP : 65.20.74.164 Client IP : 18.227.13.219
Current File : /var/www/html/site_shopudiet/admin/new_order_fetch_details.php
<?php
include('dbconnect.php');
    $phone = $_POST['phone'];
    $data = "SELECT * FROM customer WHERE phone='$phone'";
    $result = mysqli_query($conn,$data);
    while($row = mysqli_fetch_array($result))
    {
        $return_arr = array('name'=>$row['name'],'email'=>$row['email'],'phone'=>$row['address'],'city'=>$row['city'],'pincode'=>$row['pincode']);
    }
    if(mysqli_num_rows($result) > 0) {
        echo json_encode($return_arr);
    } else {
        $return_arr = 1;
        echo json_encode($return_arr);
    }
?>