Jump to content

Find user with similarities to other user


jsoeurt

Recommended Posts

I've got a database with users and the things they are interested in. The database contains the following fields:

 

username, interested1, interested2, interested3

 

User1 for example is interested in "rock music", "dvd movies with a happy ending" and "going on vacation"

 

Now I want to show User1 the username of a user that has things in common with User1. But I don't want it to be the same result every single time. And when there are no users with things in common I want to show a random username.

 

Does anyone know how to do this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.