jsoeurt
12 Dec 2007, 05:20 PM
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?
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?