Re: how can i display only the country and not the whole array on Geo.php?
| From: | Louie Miranda | Date: | Tue, 24 Aug 2004 08:17:42 +0000 |
| Subject: | Re: how can i display only the country and not the whole array on Geo.php? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14244@lists.php.net to get a copy of this message | ||
thank you,
sorry also..
i was able to read just now the array, im still new on that.
thanks again!
On Mon, 23 Aug 2004 13:55:37 +1000, Doug Kearns
<djkea2@mugca.its.monash.edu.au> wrote:
> On Mon, Aug 23, 2004 at 10:43:08AM +0800, Louie Miranda wrote:
> > <?php
> > require_once('Net/Geo.php');
> >
> > $net_geo = new Net_Geo();
> > $ip = $_SERVER['REMOTE_ADDR'];
> > $results = $net_geo->getRecord($ip);
> >
> > print "<pre>";
> > print_r($results);
> > print "</pre>";
> >
> > ?>
>
> echo $results['COUNTRY'];
>
> http://www.php.net/manual/en/language.types.array.php
>
> Regards,
> Doug
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Louie Miranda
http://www.axishift.com