I have a unit table that represents the number of bedrooms of the building:
id| dorm
1 | 1|3
In this case above it means that the property id 1 has units with 1 or 3 bedrooms.
Then I have a search using $_GET
where the dorm field is dorm = 2, for example
In this example I need the query to bring this id 1, because the person selected at least 2 dormitories, and as in the column dorm has 1 | 3 (that means that it has units of 1 or 3 dormitories) it must bring id 1.
To do the query I would have to "break" the dorm column, this? I do not know how