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

Re^3: Preventing SQL injection attacks: Placeholders are enough for MySQL, Postgresql and SQLite

by siracusa (Friar)
on Jan 10, 2008 at 14:10 UTC ( #661618=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $sth = $dbh->prepare('SELECT * FROM t1 WHERE somedate = ?');
    $sth->execute('CURRENT'); # Boom: error!
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-09-15 02:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls