Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare("
      SELECT * FROM foo WHERE bar=$qstring1 AND baz=$qstring2
    "); 
    $sth->execute();
    
  2. or download this
    my $sth = $dbh->prepare("
      SELECT * FROM foo WHERE bar=? AND baz=?
    "); 
    $sth->execute($string1, $string2);