Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 contemplating the Monastery: (4)
As of 2014-09-21 00:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (165 votes), past polls