Joining Tables

2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 3, 2012   (RSS)

Hello...

Need some help.

I have 2 tables - User_Profiles & User_Submissions. The common denominator is user_id, which can be used to link both tables.

The way the sections function:

I have an iphone app that uses fb authentication to register users if they want to submit content. On initial sign on, a web service checks to see if the user has an account. If there is not account, it creates on and pulls all user data from fb and writes to the use_profiles table.

The user can then post content, and it writes that data to the user_submissions table. In both tables, the unique identifier & link is the user_id.

What I need to do is link both tables with the user_id, and then pull the user thumbnail image from the user_profiles section and display is when the content from the user_submissions is pulled.

I hope that makes sense. Thanks