Changeset 5 for trunk/dnsbl/DNSBL.pm
- Timestamp:
- 09/10/09 12:48:42 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dnsbl/DNSBL.pm
r4 r5 123 123 } 124 124 125 # return true if the IP has been reported 125 126 ## DNSBL::ipexists() 127 # return report count if the IP has been reported, otherwise return undef 126 128 sub ipexists { 127 129 my $self = shift; 128 130 my $ip = shift; 129 my $sth = $dbh->prepare("SELECT count (*)FROM iplist WHERE ip=?");131 my $sth = $dbh->prepare("SELECT count FROM iplist WHERE ip=?"); 130 132 $sth->execute($ip); 131 133 my ($ret) = $sth->fetchrow_array(); 132 134 return $ret; 133 } 135 } # end ipexists() 134 136 135 137
Note:
See TracChangeset
for help on using the changeset viewer.