$sqlOilBrown2009="SELECT SUM(genoil)AS genoiluse FROM `gen` WHERE idgentype ='3' and gendate LIKE '%%/%%/2009' ";
$sqlOilBrown2010="SELECT SUM(genoil)AS genoiluse FROM `gen` WHERE idgentype ='3' and gendate LIKE '%%/%%/2010' ";
$queryOilBrown2009 =mysql_query($sqlOilBrown2009);
$queryOilBrown2010 =mysql_query($sqlOilBrown2010);
$resultOilBrown2009 =mysql_fetch_array($queryOilBrown2009);
$resultOilBrown2010 =mysql_fetch_array($queryOilBrown2010);
$genoiluse2009 =$resultOilBrown2009["genoiluse"];
$genoiluse2010 =$resultOilBrown2010["genoiluse"];