create a recordset that will query the table based on the selected room and return the max number of seats.
make sure the code for the recordset comes before the server validation behavior code.
in the server validation behavior, use numeric validation for the number of people attending field.
in the numeric validation, use the code for the maximum number of seats column from the recordset for the maximum number, for example:
$row_recordsetName['maxSeats']