Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
[Discipulus]: good morning, if raining here
[choroba]: Good morning!
[Discipulus]: so few questions these days..

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2017-04-28 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (519 votes). Check out past polls.