ESH/select_amount_list.php

15 lines
402 B
PHP
Raw Normal View History

2024-10-23 18:28:06 +05:30
<?php
error_reporting(E_ERROR | E_PARSE);
include ('includes/config/config.php');
$voucher_id = $_REQUEST['voucher_id'];
$sql="select discount_percentage from voucher_master where voucher_id = '$voucher_id'";
$data=array();
$results=@mysqli_query($conn,$sql);
while($row = @mysqli_fetch_array ( $results )){
$data=$row;
}
echo json_encode($data);
?>