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 7599587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:41:55+00:00 2026-05-30T22:41:55+00:00

So I’ve been looking in to doing this and have come up with I

  • 0

So I’ve been looking in to doing this and have come up with I guess it is the basics of what I am wanting to do. I have four tables. One is just the table with the user info which will say “this is the user you are getting info for.” The other three have the actual information I need to pull together.

table_1 has the info on which user. So the user id.

table_2 has a title and description unique to the user in relation to the contents of table_3.
table_3 has all the basic info. Any user could have the same row in table_3. table_3 says “this is the content” and table_2 says “This is how this specific user has a relation to table_3.

table_4 is groups of table_2 rows.

So A user can say I want this picture, video, whatever in the “Cool stuff” group. Once all the info is added to the database you will get the basic content info (table_3) inside the group the user wanted it in (table_4) and it will be the users specific content because the will have their added stuff with table_2.

Actually getting all the info into the database is easy. Pulling it out and putting it together is where I am getting confused. Each of the ON parts is related. My DB is innodb and I have set foreign keys so for example on the first SELECT table_2.userId is a foreign key of table_1.id.

And what I want at the end is I guess an array of title, description, link, groupName. I am using php with mysql but I think I could figure out what I need to do on that end if I can actually get the right query or queries I need.

If any more info is needed, please let me know so I can make things more clear or whatever.

SELECT tile, description
FROM table_2
INNER JOIN table_1
ON table_2.userId = table_1.id

SELECT link
FROM table_3
INNER JOIN table_2
ON table_3.id = table_2.table_3Id

SELECT groupName
FROM table_4
INNER JOIN table_2
ON table_4.id = table_2.table_4Id
  • 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-30T22:41:56+00:00Added an answer on May 30, 2026 at 10:41 pm
    SELECT tile, description, link, groupName
    FROM table_2
    JOIN table_1 ON table_2.userId = table_1.id
    JOIN table_3 ON table_3.id = table_2.table_3Id
    JOIN table_4 ON table_4.id = table_2.table_4Id
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text

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.