I have a problem of connecting "and" and "or" together. Here's my code:
SELECT * FROM table WHERE name LIKE '$name'
AND color LIKE '$color'
OR color2 LIKE '$color2'
OR color3 LIKE '$color3'
AND gender LIKE '$gender' -- when I add those 3, search stops working.
OR gender2 LIKE '$gender2'
OR gender3 LIKE '$gender3'
The problem is that when I add "gender" to select, my search stops working... Is there a problem with double "or" or maybe with the positioning?