<?php
    error_reporting(E_ERROR | E_PARSE);
	include ('includes/config/config.php');

	$product_id = $_REQUEST['product_id'];

	        $sql="select rate_per_unit,discount_percentage,tax_code1,tax_rate1,tax_code2,tax_rate2,hsn_code from product_service_master where product_id = '$product_id'";
	        $data=array();
	        $results=@mysqli_query($conn,$sql);
			while($row = @mysqli_fetch_array ( $results )){
				$data=$row;
			}
    
			echo json_encode($data);
?>