Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare("select * from foo where bar = ?");
    $sth->execute($userinput);
    
  2. or download this
    my $sql = sprintf "select * from foo where bar = %s", $dbh->quote($use
    +rinput);