$sth = $dbh->prepare("SELECT * FROM guestlog WHERE host=?"); $sth->execute($host);