Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Quote mark in string messing up mySQL INSERT

by htoug (Deacon)
on Dec 13, 2002 at 08:24 UTC ( #219530=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Quote mark in string messing up mySQL INSERT
in thread Quote mark in string messing up mySQL INSERT

Nope!!
What if your variables contain apostrophes? Or other 'nasty' characters?

Stick with either $dbh->quote($variable) or use placeholders.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-10-26 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (90 votes). Check out past polls.

    Notices?