$sth = $dbh->prepare('select * from table where name=?'); $rv=$sth->execute($data{name});