Assume that $foo is an array of utilities which a room has (e.g. pool or washer or dryer):
$matched_options = array();
$options("pool", "washer", "dryer");
while($foo = mysql_fetch_array($resultset)){
foreach($foo as $bar){
if(in_array($bar, $options){
$matched_options[] = $bar;
}
}
}
$matched_options then contains the matched utilities.
Alternatively you could put the required options directly in the SQL query (if this is feasible, depends on your database design).
$options("pool", "washer", "dryer");
$sql = "SELECT room FROM rooms WHERE ".implode(" = 1 AND ", $options)." = 1";
// $sql = "SELECT room FROM rooms WHERE pool = 1 AND washer = 1 AND dryer = 1";
$result = mysql_query($sql);