On 05/10/00, "bruno stefanutti <[EMAIL PROTECTED]>" wrote:
> I would like to see the error messages of my DBI
> connection/execute/prepare/etc... statements errors on my browser;

> $dbh->{RaiseError} =1;
> and
> $dbh->{PrintError} =1;
> 
> but I don't see in the browser the messages when something is bad. I'm
> able to understand what is bad only thanks to  PerlBuilder program.

If the failure is in the connect, then you won't see anything when
you set it that way. Set it on the connect (you don't need PrintError
when you use RaiseError):
my $dbh = DBI->connect($connect_str, $user, $passwd, {RaiseError=>1});

Also, are you outputting the fatals to the Browser?
use CGI;
use CGI::Carp 'fatalsToBrowser';

HTH,
Douglas Wilson

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to