<?php $dbhost = "localhost"; $dbuser = ""; $dbpass = ""; $dbname = ""; mysql_connect($dbhost,$dbuser,$dbpass); mysql_select_db($dbname); mysql_query('SET NAMES utf8'); $ip = 'ВАШ IP!'; $query = "SELECT country_name FROM ip WHERE INET_ATON('{$ip}') BETWEEN start_ip_num AND end_ip_num LIMIT 1"; $res = mysql_query($query); $row = mysql_fetch_row($res); print_r($row); ?>