- or download this
|-USER------|
| id | (a unique identifier for the row)
...
| last_time | (the last time we saw the user)
| url | (the user's URL)
|-----------|
- or download this
|-ALLIP-----|
| id | (a unique identifier for the row)
...
| ip | (the IP address)
| time | (the time it was seen)
|-----------|
- or download this
my $sql = <<SQLCODE;
SELECT
...
{
die( "Database error " . $dbh->errstr . "\n" );
}
- or download this
my $found_id = undef;
my $sql = <<SQLCODE
...
# perform insert
# code left to read as an exercise
}