$query="select a.*,b.product_list,b.rate_per_unit,b.qty,b.total_before_discount,b.discount_percentage,b.discount_amount,b.total_after_discount,b.tax_code1,b.tax_rate1,b.tax_code2,b.tax_rate2,b.total_tax,b.total_amount from bill_master a left join bill_details b on b.bill_id=a.bill_id where a.bill_id = '".$bill_id."' ";