$re=$dbh->prepare("select * from table where firstname=? and lastname=?"); $re->execute($input1, $input2);