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,
First of all you should fix your database structure. Here’s mine suggestion:
Please note, that you shouldn’t save users username in each table, save it only in
userstable. Also, username should bevarchartype.And here is your query in fixed database: