19 lines
548 B
PHP
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);
|