Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5937981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:37:10+00:00 2026-05-22T15:37:10+00:00

Ok I need help. I need to have a friends system in my website

  • 0

Ok I need help. I need to have a friends system in my website but i don’t wont a lot of tables on my server.
In this friends system you can send request and they can accept or reject it?
I can get the friends to send a request but i need away of Getting all of the users friends?

So i can talk to all my friends on my site and if they are not my friend i can not chat to them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:37:10+00:00Added an answer on May 22, 2026 at 3:37 pm

    I would make 1 table in mysql “Friends”
    Each friend request would INSERT INTO Friends 2 users (the requester and the requestee) and then you can have another colum called accepted which can be 0 or 1 (0=default/pending) (1=accepted).
    You’ll have to notify the requestee somehow, if they accept you turn accepted to 1 and add a friend request from the requestee with accepted ==1, and if they reject you can delete that row.
    I’m sure theres a much more effecient way to do it, but as far as simplicity I think that’s about as simple as it gets.

    to get the friends of user A? just check the database for all FROM friends where accepted == 1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this function which helps me retrieve my friends ids, but i can't
I need some help formulating this query. I have two (relevant) tables, which I
Need help with a query that I wrote: I have three tables Company id
I have this JUnit test that I need help developing a Interface and Class
I need help with a SQL Query I have this table likes friend friend2
friends i need your help.Actually i have to show a circle navigation of pages
Hello stack overflow I need help with this problem. Ok, I have a flat
I am newbie in Python and I need help: I have a file with
I am new to Jquery and need some help: I have a div, I
I'm a noob with mysql and php, and need some help :) I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.