Now I have 2 tables: demo
(detailed information about users) and users
(login and password), then I create a junction table
(ID, demo_ID and user_ID).
The system working like this:
- User register
- User login
- User fill form where he gave a detailed information
And I want to fill junction table automatically with user_ID
and demo_ID
where user_ID will LOGGED USER and demo_ID
the information of exactly this user.
How can I do this? Please help me =)