If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > New Members & Introductions > SQL relationships

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-28-10, 03:06
rifkijones rifkijones is offline
Registered User
 
Join Date: Jul 2010
Posts: 1
SQL relationships

Hi this my first post here and am looking forward to using dbforums

I am developing a online formbuilder where users, once registered can create and manage just their own forms. I have the mySql form tables created that are imputed with forms details, id, elements etc, and have created the 'user/registration' table so users can login

What I need is some help on how to build the relationship between the user table and the form tables, so they are assigned to their form

Once logged in users id is tracked with a cookie, and I presume that the users table uses a one to many relationship, but how can I implement this in my sql

I hope I have explained this OK, thanks in advance

Rifki
Reply With Quote
  #2 (permalink)  
Old 08-02-10, 05:56
PerryP PerryP is offline
Registered User
 
Join Date: Aug 2010
Posts: 2
Welcome. You need an id in the forms table refering to the same id in ther users table.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On