in reply to perl DBI help
Try something like this on each DB call to pinpoint the problem
Update: swiftone has a good eye. I believe the finish call is your real problem. but ALWAYS check for failure on db calls.$dbh= DBI->connect("DBI:mysql:host=localhost;database=testsites","qaus er","blah",{PrintError => 0, RaiseError => 1}) or die $DBI::errstr; -and- $sth = $dbh->prepare ($stmt) or die $dbh->errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: perl DBI help
by swiftone (Curate) on Sep 26, 2002 at 20:58 UTC | |
by thunders (Priest) on Sep 26, 2002 at 21:24 UTC |