It looks like you might need to add some error checking to your program. Something like the following will display the error text if the connection fails.
$dbh = DBI->connect("DBI:...", $user, $passwd) or print "<p>Error connecting to database: " . $dbh->errstr . "</p +>", exit;
Look around the monastery for DBI tutorials. I've seen a few but don't have any bookmarks handy.
In reply to Re: Detecting a failed DBI connection
by pfaut
in thread Detecting a failed DBI connection
by Massyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |