Currently I am in need to find the friends of friends in my application using PHP and MYSQL
For example : Database structure is like this. Table Name : tbl_friendlist
Ident mem_id friend_id
1 2 1
2 1 2
3 1 3
1 4 1
5 1 8
How can i achieve this
I am able to get the Friends by
SELECT * FROM tbl_friendlist WHERE mem_id = 1.
By using this i am able to get my friends list. Now how can i get the friends of friends
Thanks in advance!