in reply to perl DBI help
On the face of it I can't see anything wrong with your code (though other monks may be able to). My guess is something like a typo in $stmt. The easy way to find out is to edit those lines to$sth = $dbh->prepare ($stmt); $sth->execute();
That may well throw some light on exactly where it's breaking down, by giving you some informative error messages. (NB if it dies on the first of these and doesn't give you an informative error message, that probably means your DB handle didn't get properly initialised in the first place - password prob?)$sth = $dbh->prepare ($stmt) or die $dbh->errstr; $sth->execute() or die $dbh->errstr;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: perl DBI help
by swiftone (Curate) on Sep 26, 2002 at 20:54 UTC |