Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: No apostrophe Insert into MySQL

by Codon (Friar)
on Oct 31, 2005 at 21:16 UTC ( #504422=note: print w/ replies, xml ) Need Help??

in reply to Re: No apostrophe Insert into MySQL
in thread No apostrophe Insert into MySQL

DBI also supplies a quote() method which will quote a string appropriately for your DB. This may save you from massive code refactoring.

my $quoted = $dbh->quote("Wouldn't you rather use bind parameters?");
TMTOWTDI, although some are certainly better than others.

Ivan Heffner
Sr. Software Engineer, DAS Lead, Inc.

Comment on Re^2: No apostrophe Insert into MySQL
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2015-10-08 17:43 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (222 votes), past polls