You are here

function uc_ip2country_get_count in IP-based Determination of a Visitor's Country 5

Get the total count of IP ranges in database

1 call to uc_ip2country_get_count()
_ip2country_update in ./uc_ip2country.module
AJAX callback to update the IP to Country database.

File

./uc_ip2country.module, line 411
Determination of user's Country based on IP

Code

function uc_ip2country_get_count() {
  $sql = "SELECT COUNT(*) FROM {ip2country}";
  $count = db_result(db_query($sql));
  return (int) $count;
}