17 lines
612 B
PHP
17 lines
612 B
PHP
|
<?php
|
||
|
include('includes/config/config.php');
|
||
|
include('includes/functions.php');
|
||
|
include('log_entry.php');
|
||
|
error_reporting(E_ERROR | E_PARSE);
|
||
|
|
||
|
|
||
|
$item_id = $_POST['item_id'];
|
||
|
$appointment_id = $_POST['appointment_id'];
|
||
|
$data = null;
|
||
|
$sql_treatment_qty = "select * from treatment where appointment_id='" . $appointment_id . "' and is_display!='N' and item_id='" . $item_id . "'";
|
||
|
error_log("qyery ".$sql_treatment_qty);
|
||
|
$res_treatment_qty = mysqli_query($conn, $sql_treatment_qty);
|
||
|
$row_treatment_qty = mysqli_fetch_assoc($res_treatment_qty);
|
||
|
$data = $row_treatment_qty['issued_qty'];
|
||
|
echo json_encode($data);
|
||
|
?>
|