Hello,
First of all, thank you for the useful script and data.
I am new to php programming and need some advice.
I found difficulties trying to put this script into use. No matter what IP I passed to the check_country function, I always got 'united states' as the answer.
And then I tried to modify the database structure. I changed the 'from' field and 'to' field, from varchar to biginteger.
This seems to solve my problem. Different IPs yield different answer from the check_country function.
But I'm still uncertain whether or not the answer is the correct one because one of the IP I tried to pass to the function gives no result (no country). And yet I know for sure that the IP is a valid internet IP.
Please advise:
1. Why did I need to change the 'from' field and 'to' field to biginteger to make the script run correctly?
2. Why did I get no result for an IP that I know for sure is a valid one?
Thank you
The original poster is no longer with CodeCall. If you have any question regarding this posting, please start a new thread in the appropriate section of the forum (and reference this thread).
Thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks