CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: DBI:
getting DBI::errstr in server side

 



rohant
Novice

Jan 21, 2007, 9:39 PM

Post #1 of 2 (2798 views)
getting DBI::errstr in server side Can't Post

dear all,
i am catching the error in cgi script on server side.
if the DAO ie. DB error occurs like database connection failed.
then i want that errors string to be accessible in server cgi script
but i cant use the global variable DBI::errstr as its on server side and i want it for specific clients.the varible $dbh database hadndler wont work as it will be undefined. can i get this value in some variable so that i can use it.

thanks in advance
-Rohant


davorg
Thaumaturge / Moderator

Jan 22, 2007, 5:11 AM

Post #2 of 2 (2794 views)
Re: [rohant] getting DBI::errstr in server side [In reply to] Can't Post

I don't understand why you can't use DBI::errstr. That's what I've always used in this case. Can you be more specific about why you think you can't use it?

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives