I`m creating a social network website,My problem is that i dont know How to get started in this FRIENDS SECTOR.
I want somebody to be able to send a Friend Request to Another in my website,and after the other one Accepted the request Both to be able to see each in their friends list.
Anyone who have idea on how i can solve this i will appreciate.
mrcniceguy 5 Posting Whiz in Training
Recommended Answers
Jump to PostYou could use the friend_requests table as the list of friends if you added an accepted field do it.
eg: viewing friends
$userid = intval( $_SESSION);
select f.* from friend_requests
left join members as m on (m.id = f.sender OR m.id = f.recipient)
WHERE m.id = $userid …
All 3 Replies
Shanti C 106 Posting Virtuoso
star-whiz commented: Good Analysing ..... +1
mrcniceguy 5 Posting Whiz in Training
digital-ether 399 Nearly a Posting Virtuoso Team Colleague
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.