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