I got three tables; house, attributes, houseattributes:
house table:
house_id
house_location
attributes table:
attrib_id
attrib_title
houseattributes:
ha_id
ha_house
ha_attrib
The idea is that I will fill up the attributes table with stuff like: white-colored, three story, two story, has cellar, has balcony, has garden and so on. I could then populate houseattributes with the house and attribute table-keys (attrib_id, house_id). So if I want to search for a house with a specific attribute, I would do:
Code:
SELECT * FROM house LEFT JOIN houseattributes ON houseattributes.ha_house.house.house_id WHERE ha_attrib = '3'
In this example, "3" is the attribute, as set in the attributes table).
Now for the problem.
I want the ability list all houses that has several attributes se
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --