";
}
function country_detail($country,$from,$to,$src){
global $db_conn;
if($src != 'all'){ $sql = "select \"MalwareName\",\"Total\" from \"mis\".\"report_fls_infection_country\" where (\"Ts\" between '$from' and '$to')
and \"CountryName\"= '$country' and \"CallerTypeId\" = $src";
}
else{$sql = "select \"MalwareName\",sum(\"Total\")as \"Total\" from \"mis\".\"report_fls_infection_country\"
where (\"Ts\" between '$from' and '$to') and \"CountryName\"= '$country'
group by \"MalwareName\" order by \"Total\" desc";
}
$res = pg_query($db_conn,$sql);
flush();
print "
Infection detail for $country return to map