Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: DBI/mysql gathering all rows on execute

by princepawn (Parson)
on Nov 24, 2003 at 20:08 UTC ( #309661=note: print w/replies, xml ) Need Help??

in reply to DBI/mysql gathering all rows on execute

This is besides the point of your post, but consider turning on the RaiseError attribute and then you can get rid of all your or die code, which is actually lacking a print of $DBI::errstr anyway. From the DBI docs:
RaiseError (boolean, inherited) The RaiseError attribute can be used to force errors to raise exceptions rather than simply return error codes in the normal way. It is "off" by default. When set "on", any method which results in an error will cause the DBI to effectively do a die("$class $method failed: $DBI::errstr"), where $class is the driver class and $method is the name of the method that failed.

PApp::SQL and CGI::Application rock the house

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2023-04-01 05:09 GMT
Find Nodes?
    Voting Booth?

    No recent polls found