I read another thread about the same issue, in that post the starter mention he has something in his tables. But to quote SA:
"The table either contains data or it doesnt it doesnt hold anything else."
What does he mean here? I got a table named "iptocountry". It contains:
ip_from
ip_to
country_code2
country_code3
country_name
And i had it before i tried your line Ike013. Could be the reason i getting errors

Cause your line states: $sql="INSERT INTO iptocountry ( `ip_from` , `ip_to` , `country_code2` , `country_code3` , `country_name` )
Quite useless to insert something i already have :p
Well, the real question i got for this post is no more then:
Is it best to delete the "iptocountry" table before i do anything else?
Thanks.