15 lines
402 B
PHP
15 lines
402 B
PHP
<?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);
|
|
?>
|