Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-07-24 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls