Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Getting a list of columns from a MySQL Table

by Aristotle (Chancellor)
on Jul 23, 2002 at 00:12 UTC ( [id://184295]=note: print w/replies, xml ) Need Help??


in reply to Getting a list of columns from a MySQL Table

Did you check $sth->errstr (or generally $DBI::errstr)? There's nothing in your example that checks for errors; do you use RaiseError?

(I think you needn't call finish() either there, btw, since $sth goes out of scope at the end of the loop anyway, but that's beside the question of course.)

Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found