Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^3: Need help escaping literal string

by muba (Priest)
on Nov 15, 2012 at 02:20 UTC ( #1003916=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Need help escaping literal string
in thread Need help escaping literal string

Typically it would look a little like this.

my $insert = "insert into table (vol) values (?)"; $dbh->do($insert, $values[8]);

Generally, the notion is that you never directly put variables into SQL statements.

Comment on Re^3: Need help escaping literal string
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2016-02-07 13:36 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (253 votes), past polls