gohaku [EMAIL PROTECTED] 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.

Hmm, please do what's been said.

1) man DBI

2) /errstr


-- 
Michal Kurowski
perl -e '$_=q#: 13_2: 12/o{>: 8_4) (_4: 6/2^-2; 3;-2^\2: 5/7\_/\7: 12m m::#;
y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'

Reply via email to