Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Quick DBI Fail Question

by Trihedralguy (Pilgrim)
on Nov 08, 2007 at 00:23 UTC ( [id://649601]=note: print w/replies, xml ) Need Help??


in reply to Quick DBI Fail Question

I will have to read up on the difference between do and fetch...The code snippet was just kind of an example I forgot to remove...
I have one more question then...In the "die" statement, how can I go about making that more or less print html.
I've tried to do "die " print qq^ 'html with quotes goes here' ^";, But I know that cannot work.

Replies are listed 'Best First'.
Re^2: Quick DBI Fail Question
by jZed (Prior) on Nov 08, 2007 at 00:56 UTC
    If you set RaiseError in the connection, it will die and print automatically - you don't need to specifically trap or print them. See Carp for how to make the errors appear in a browser.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://649601]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-03-28 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found