> Hi,
Howdy
>
> I wanna use a mysql-database for our systemuser-management.
> Adding and showing a list of users is no problem but now my question:
>
> How can I handle the appearing mysql-errorcode instead of the
> "die"-statement when I´m selecting or deleting a nonexisting
Assuming I understand your question right...
You have something like this right?
$dbh->function() or die "Boo hoo for me $DBI::errstr"; ?
How about:
my $myerr;
$dbh->function(...) or $myerr .= "Boo hoo for me $DBI::errstr\n";
$dbh->function2(..) or $myerr .= "Boo hoo for me again $DBI::errstr\n";
if(!$myerr) { print "Yee haw it seems to have worked!"; }
else { print "Can\'t you do anythign right?\n $myerr"; }
No die or exit, just go with the flow and mod_perl safe (IE no exit calls) to!
HTH
Dmuey
> entry in my
> database?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]