Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Backslashes with DBI quote( ) and MySQL

by webadept (Pilgrim)
on Mar 06, 2002 at 07:25 UTC ( [id://149624]=note: print w/replies, xml ) Need Help??


in reply to Backslashes with DBI quote( ) and MySQL

I would have to agree with lachoy on this, and it bothered me for some time as well. What caught my eye with your problem was you say the "escaped single quotes" and if all went correctly you shouldn't be "seeing" anything except a single quote.

When I noticed this problem was when I was taking in information from a web source or sending it as a POST to the program. When that happens, the strings are "escaped". Taking those strings in and escaping them again with "quote()" would give the out put you are describing.

Since using quote() is a good idea, espesally with strings, what I did to solve my problem was to unescape the input strings and then use "quote()" on them, re-escaping them. This insured input and that unwated effects were not taken in without some messure of deturance.

okay, enough out of me, hope that helped.

webadept.net
  • Comment on Re: Backslashes with DBI quote( ) and MySQL

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found