i am trying to create a friend suggest script where users having mutual friends will be suggested to become each others friend....

my table contains two fields -> username, friend

somehow i managed to get the usernames having mutual friends with the session user... now my query result in a loop ends up with repeated entries...
Ex -> Roni, Kevin, Micheal, Kevin, Kevin, Roni

now i want to skip duplicate data and only want to echo the unique data...

is there ne way to do so or i need to change the table format?

something like friend suggest in facebook r orkut...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.