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();