Thanks for all your help. It just worked like a charm.
Found the list with all cctld's http://www.iana.org/domains/root/db/ and this actually requere more than 2 chars to put in all, but for my needs it is ok.
I use this MySQL list to update the Country (LAND) based on e-mail endings, but it will search the entire table each time. Isen't there a more effective way to do this?
UPDATE `Bruger_data` SET `LAND` = "Denmark" WHERE `EMAIL` LIKE '%.dk' AND `LAND` = "Not set";
UPDATE `Bruger_data` SET `LAND`...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.