Help for this page

Select Code to Download


  1. or download this
    $str = $dbh->quote("%it's not a problem%");
    
    print "<p>quoted: $str</p>";
    
  2. or download this
    $sth = $dbh->prepare(
    "SELECT name FROM practice WHERE name LIKE '%it\'s not a problem%' "
    ) || die "Error: " . $dbh->errstr;
    
  3. or download this
    $sth = $dbh->prepare(
    "SELECT name FROM practice WHERE name LIKE '%it''s not a problem%' "
    ) || die "Error: " . $dbh->errstr;