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

  • Home
  • SEARCH
  • 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 7937861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:38:10+00:00 2026-06-03T22:38:10+00:00

I want to ask, and I really need the answer. here I have 3

  • 0

I want to ask, and I really need the answer.

here I have 3 tables in one database.

1 # users
– id_user (int)
– username (text)

2 # status_update
– id_status (int)
– id_user (int)
– username (text)
– status (text)

3 # follow
– id_user (int)
– id_user_follow (int)
– username (text)
– username_follow (text)

the question is, how to display the status of the user that I follow .. and do not display the status of the user that I not follow. ?? .. using php and mysql, please, need help.

NEW QUESTION

im sorry, im still dont understand, this is my real table

Please help, I still do not understand the answer in [my previous post][1], here I have 3 tables.

1 # profile
- id_user
- username
- email

2 # picture
- id_picture
- id_user
- the title

3 # subscribe
- id_user_a
- Id_user_b (people who subscribe at user_a)
- date

now the question is, how to display the title picture in people who subscribe only, and does not display the title picture in people who do not subscribe,

  • 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-06-03T22:38:11+00:00Added an answer on June 3, 2026 at 10:38 pm

    First of all you should fix your database structure. Here’s mine suggestion:

    users - id (int), username (varchar)
    status_updates - id (int), users_id (int), status (text)
    follow - users_id, following_users_id
    

    Please note, that you shouldn’t save users username in each table, save it only in users table. Also, username should be varchar type.

    And here is your query in fixed database:

    SELECT u.username, s.status
    FROM users u
    LEFT JOIN follow f ON u.id = f.following_users_id
    LEFT JOIN status_updates s ON u.id = s.user_id
    WHERE f.user_id = USER_ID
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really didn't want to have to waste people's time and ask this, but
So what i want to ask is below Here is my header file NSString
important ; I'm really looking for a StructureMap answer here. Please don't say how
I am very sorry if I ask a wrong question but I really need
want to ask user to input something but not want to wait forever. There
I want to ask how can someone read keystrokes while in a html page
I want to ask wether it's possible to develop a J2ME application for Nokia
i want to ask a question about how to do paging in ASP.net coding
I want to ask how to add a computed column in BIRT that compute
I want to ask you to provide me with some articles (maybe books), which

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.