hello guys i found some similar questions here but nothing work's for me maybe someone can help me. i have a couple of filter where the user can list other users by properties like in a dating site. i want to show the user just the members from the filters the user choose. i store the keywords in an array and want to get the data now from two different tables. at the moment i use this query but its just shows me the values from one table
$sql = "SELECT * FROM users WHERE username IN ($data) AND country IN ($data) OR city IN ($data) OR gender IN ($data)";
i need to get some more properties like smoker or non smoker etc. from another table how would i do this with this array ($data). sorry for the bad english
the table one is users who contains id, username, gender, country and the other table called properties who contains id, userid, hobbies, jobs i need to join them somehow