//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'];
//Division name
$Div_Name = mysql_query("select Div_Name from division where Div_code='$Div_Code'");
$rowD=mysql_fetch_array($Div_Name);
$D_Name=$rowD['Div_Name'];
$result = mysql_query("SELECT division.Div_Code,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 car_details,thana,district,division
WHERE division.Div_code = district.Div_code
And district.Dist_code = thana.Dist_code
And car_details.Thana_code=thana.Thana_code
And division.Div_Code='$Div_Code' And NGO_Code='1'
And Month_Id Between '$Date' and '$Date1'
Group by division.Div_Code,Month_Id Order By Month_Id ");
$num=mysql_num_rows($result);
?>
Contraceptive Acceptors Dropout by Month at Division Level