function ip_tracker_ip_records in IP address manager 6
Same name and namespace in other branches
- 8.2 ip.module \ip_tracker_ip_records()
 - 7.2 ip.module \ip_tracker_ip_records()
 - 7 ip.module \ip_tracker_ip_records()
 
Get the records from the tracker for an IP.
1 call to ip_tracker_ip_records()
- theme_ip_tracker_ip_records in ./
ip.module  - Theme the IP tracker records for an IP.
 
File
- ./
ip.module, line 139  - IP address manager module.
 
Code
function ip_tracker_ip_records($ip) {
  $sql = "SELECT * FROM {ip_tracker} WHERE ip = '%s'";
  $args = array(
    ip2long($ip),
  );
  $result = db_query($sql, $args);
  $rows = array();
  while ($row = db_fetch_array($result)) {
    $row['ip'] = long2ip($row['ip']);
    $rows[] = $row;
  }
  return $rows;
}