Please Help to use API [Newbie]

Dear Admin,
First thanks a lot for great service..!
I am trying to display the flag, country info for IPs retrived from mysql, but I could show only the flag. I do in this way [PHP],
Works fine. But,
Does not display the country info, but the full url [http://api.hostip.info/get_html.php?ip=65.55.246.48]
How do I display the country info in my page???
[rajkumar]
First thanks a lot for great service..!
I am trying to display the flag, country info for IPs retrived from mysql, but I could show only the flag. I do in this way [PHP],
- Code: Select all
$flag= "<A HREF="http://www.hostip.info">
<IMG SRC="http://api.hostip.info/flag.php?ip=$ip" ALT="IP Address Lookup">
</A>";
echo "$flag";
Works fine. But,
- Code: Select all
$countryinfo="http://api.hostip.info/get_html.php?ip=$ip";
echo "$countryinfo";
Does not display the country info, but the full url [http://api.hostip.info/get_html.php?ip=65.55.246.48]
How do I display the country info in my page???
[rajkumar]