if($v3=='9' && $month== '9' && $year=='2014'){
$sql = "select * from sale as t1 inner join product_type as t2 on t1.id_ptype = t2.id_ptype
inner join product as t3 on t1.id_pro = t3.id_pro inner join save_pawn as t4 on t4.id_pro=t3.id_pro where MONTH(date_sale) = $month AND YEAR(date_sale) = $year AND t2.id_ptype=$v3 LIMIT 0 , 20";
}