//Month name
$sql=mysql_query("select M_name from month where M_id='$m'");
$rowM=mysql_fetch_array($sql);
$M_Name=$rowM['M_name'];
$sql1=mysql_query("select M_name from month where M_id='$m1'");
$rowM1=mysql_fetch_array($sql1);
$M_Name1=$rowM1['M_name'];
$Thana_Name = mysql_query("select Thana_Name from thana where Thana_Code='$Thana_id'");
$rowT=mysql_fetch_array($Thana_Name);
$T_Name=$rowT['Thana_Name'];
$District_Name = mysql_query("select Dist_Name from district where Dist_code='$dist_id'");
$rowD=mysql_fetch_array($District_Name);
$D_Name=$rowD['Dist_Name'];
$result = mysql_query("select thana.Thana_code,car_details.Month_Id,Sum(car_details.Total_EC) EC,
Sum(car_details.Pill_Drop) Pill,
Sum(car_details.Con_Drop) Con,
Sum(car_details.Inj_Drop) Inj,
Sum(car_details.IUD_Drop) IUD,
Sum(car_details.Imp_Drop) Imp
From thana,car_details
Where (car_details.Thana_code=thana.Thana_code)
And (car_details.Month_Id Between '$Date' and '$Date1' )
AND car_details.Thana_code='$Thana_id' And NGO_Code='1'
Group By thana.Thana_code ,car_details.Month_Id Order By car_details.Month_Id");
$num=mysql_num_rows($result);
?>
Contraceptive Acceptors Dropout by Month at Upazila Level