Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-10-21 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (110 votes), past polls