Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: $data{"str$i"} not valid in mysql select?

by MidLifeXis (Monsignor)
on Nov 27, 2013 at 14:09 UTC ( [id://1064622]=note: print w/replies, xml ) Need Help??


in reply to $data{"str$i"} not valid in mysql select?

Since you don't say what the source of the data happens to be, I can only assume that it is coming from a potentially untrusted source. Since that is the baseline assumption, do not interpolate -- use placeholders. See http://bobby-tables.com.

--MidLifeXis

  • Comment on Re: $data{"str$i"} not valid in mysql select?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found