Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

A puzzled garbage character issues by use Perl-DBI

by pysome (Scribe)
on Dec 19, 2008 at 03:17 UTC ( #731442=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $some_content = 'so long Asian character (maybe it contain single quot
    +ation)';
    $sql = "insert into test_table(field) values ($dbh->quote($some_conten
    +t))";
    $dbh->do($sql); # you know, this works.
    
  2. or download this
    $some_content = $dbh->quote('so long Asia character (maybe it contain 
    +single quotation)');
    $sth = $dbh->prepare("insert into test_table(field) values (?)");
    $sth->execute($some_content);
    $sth->finish();
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2023-06-10 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (37 votes). Check out past polls.

    Notices?