On Jan 30, 2004, at 8:25 AM, Tim Bunce wrote:


On Tue, Jan 27, 2004 at 08:38:14PM -0500, gohaku wrote:
Hi everyone,
I'm sorry if this question has been asked before but
I would like to know of a way to suppress error messages like:
'DBD::mysql::st execute failed: Duplicate entry.... at line 40'

I have tried the following:
    $res = $insert->execute() or die "Not Inserted\n";
and...
$dbh->{RaiseError} = 0;
but those do not work.

Does the DBI documentation not help you?


Tim.

It helps me.
I got confused about RaiseError and PrintError.



Reply via email to