Re: Various issues
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2002-08-27 12:22:17
|
Ondrej Jombik <ne...@po...> writes: > Algorith is basically simple: check if $cc is set, if it is, > show also stations select. Also check if $icao is iset, if it is, > set particular $cc and print particauler weather for $icao. If you can make the index.php page work the same without those $old_* variables, then please do. I agree that they're kind of annoying... > All we need is one DB method, that will return country ($cc) for > station ($icao). > > I will be able to implement this for mysql (I *will* do it, > because I *want* this navigation system), but I do not know what > about others RDBM systems. I think it would be a good idea to have a get_country($icao) method. And it's definitely possible as it's just a matter of storing the country code together with the name of the station: you look up the ICAO (lookup_icao($icao) already does this) and you get the name of the station and the country code. -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather => Shows the current weather on your webpage and PHP Shell => A telnet-connection (almost :-) in a PHP page. |