Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: A puzzled garbage character issues by use Perl-DBI

by lostjimmy (Chaplain)
on Dec 19, 2008 at 15:38 UTC ( #731569=note: print w/replies, xml ) Need Help??


in reply to A puzzled garbage character issues by use Perl-DBI

I believe you have things backwards. In your first example, you want to use $dbh->quote(), because if you have single quotes in your content, you could run into some security vulnerabilities. In your second example, you do not need to quote because placeholders will automatically (and appropriately) quote any content. Try removing the call to quote and see if it makes a difference.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2023-06-04 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (22 votes). Check out past polls.

    Notices?