Click here to Skip to main content
15,895,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to select users form database where users are not friends with the login user.for instance i have 20 users in my db,user1 request to be friends with 2 and 3 now i want to echo user4 to user20 in find friends of user1 without echoing user2 and user3 again because they already request to be friends,please someone should help me with the code am new to mysql.

What I have tried:

i have tryed to google it out but no solution yet
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900