ESH/get_location.php
2024-10-23 18:28:06 +05:30

19 lines
548 B
PHP

<?php
include('includes/config/config.php');
include('includes/functions.php');
include('log_entry.php');
$id = $_REQUEST['client_id'];
$client_location_options = "";
$sql = "select client_location as location,client_location_id as id from client_location where client_id='" . $id . "'";
$result = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_assoc($result)) {
$r_id = $row['id'];
$r_name = $row['location'];
$client_location_options .= "<option value=$r_id>$r_name</option>";
}
echo json_encode($client_location_options);