Hi folks.Thank u a lot for your answers beforehand. I need to make a such thing
I have a table friendship (id,user_id,friend_id,status,timestamp)
So lets say I am a user with user_id=43 and I am visiting a user with user_id=15
In the profile it should be a connection line of friendships
Let me describe ... lets say I have a friendship with user (user_id=3 and the user with user_id=3 is friend with user which profile I am visiting.
So on web site I will see
Connection
MyIcon->UserIcon(15)->UserIcon(3)->UserIcon(i am visiting)
And only in case when the friendship statuses for all are status=1...
Can anybody tell me how the query should look like?