<?php error_reporting(0);
/***************************** PREVIOUS NEXT CODING ****************************************/
include("../../include/db.php");
 
 $batch_no=$_POST['batch_no'];
 $particulars=$_POST['roll_name'];
  
 $media_part=mysql_fetch_array(mysql_query("select *, SUM(total_meter)as total_meter from media_pur_batch_tot_value where particulars='$particulars' and `batch_no`='$batch_no' group by batch_no "));
//  echo "select *, SUM(total_meter)as total_meter from media_pur_batch_tot_value where particulars='$particulars' and `batch_no`='$batch_no' group by batch_no ";
//  exit();
//  $media_qty=$media_part['tot_qty'];
 $total_meter=$media_part['total_meter'];
 
 
//  echo $media_qty;
 echo $total_meter;
?>