in reply to Re: What is wrong with this DB insert, place holder problem?
in thread What is wrong with this DB insert, place holder problem?

How about this:
$sth = $dbh->prepare($statement) or die "Couldn't prepare the query: " +.$DBI::errstr; my $rv = $sth->execute($filename,$to,$from,$comments,$uldate,$expdate) + or die "Couldn't execute query: ".$DBI::errstr;
Is using $DBI::errstr just as good?