sasi pillutla [EMAIL PROTECTED] wrote:
> How can i redirect to my error page if the database
> connection fails with the error message

Read the perldocs for DBI - specifically read up on
'RaiseError' and 'Transactions' - the transactions section
will show you how to trap errors using 'eval'.  Once you
can trap an error, you can do anything you want from
there, such as redirect to your own error page :-)

Read the DBI perldocs by doing

   perldoc DBI

at a command prompt.  That is, assuming you have DBI
installed.

HTH.
-- 
Hardy Merrill
Red Hat, Inc.

Reply via email to