I have a large list of preferences for users in a MySQL database. For example,
User 2 - Preference 1 - yes
User 3 - Preference 3 - no
User 2 - Preference 3 - no
User 6 - Preference 2 - yes
User 3 - Preference 1 - no
Basically, I am trying to design a query that will be able to plug in a user and it will find users with similar preferences. For example, plugging in "user 2" into the above, it would return "user 3" because they share the no preference of #3. The query should find multiple similar users and factor in all of the preferences.
How would I do something like that using MySQL and PHP (if needed)? Anything helps!
Thanks!