- or download this
my $dbh = DBI->connect(
'DBI:driver:database:host', 'user', 'pass',
{RaiseError => 1, HandleError => \&bail_out},
);
- or download this
my $dbh = DBI->connect(
'DBI:driver:database:host', 'user', 'pass',
...
my $result = $sth->execute($username);
$dbh->disconnect;
- or download this
sub bail_out {
my $dbh = shift;
...
# prints html message
exit(0);
}