Hello,
well this is my problem:
I have a table tblusers:
pkuserID(auto_increment),
Username.
and a table tblfriends:
pkFriendID(auto_increment),
fkUserID,
FriendID.
the fkUserID is the user his id(the person that choses his friends)
and that user can chose his friends also from the table tblusers wich will be stored in FriendID.
The problem is that I want to chose all users from tblusers in a query that aren't already in my friendslist(tblfriends).
How can I do this?
I have tried left joins and also a left join with as where clause 'FriendID is null'.
This works for a part but if someone else chose a friend that I don't have chosen. It doesn't shows his name also. while I don't have his name in my friendslist.
I hope someone can help me.
thanks in advance,