function weather_get_country_from_icao in Weather 6.5
Same name and namespace in other branches
- 7 weather.module \weather_get_country_from_icao()
2 calls to weather_get_country_from_icao()
- weather_custom_block in ./
weather.module - Show a configuration page for a custom weather block
- weather_custom_block_form_validate in ./
weather.module - Check the submission of the custom weather block
File
- ./
weather.module, line 1946 - Display <acronym title="METeorological Aerodrome Report">METAR</acronym> weather data from anywhere in the world
Code
function weather_get_country_from_icao($wanted_icao) {
$sql = "SELECT country FROM {weather_icao} WHERE icao='%s'";
$result = db_query($sql, $wanted_icao);
$row = db_fetch_array($result);
return $row['country'];
}