Insert field into two tables

tiagopc 11 Jan, 2016
1 Likes
Hi, i'm having some trouble in how to insert one field in two tables.
I have done one users insert form with chronoforms, this form insert an user into database. But i have to insert this user's id, in another table.
My main question is: How to insert this user id in two tables at the same time.
GreyHead 11 Jan, 2016
1 Likes
Hi tiagopc,

Im sorry I don't understand exactly what the problem is - please give some more detail.

Bob
tiagopc 11 Jan, 2016
I have a register of users on my site, made with ChronoForms, I want that to save a new user, it save the user id that also in another table from my database in addition to the users table. Is that clear now?
I apologize if not and I appreciate the feedback.
tiagopc 11 Jan, 2016

Hi tiagopc,

Im sorry I don't understand exactly what the problem is - please give some more detail.

Bob



I have a register of users on my site, made with ChronoForms, I want that to save a new user, it save the user id that also in another table from my database in addition to the users table
phicts 12 Jan, 2016
I think he wants to save the same data in one form into two different tables.
tiagopc 12 Jan, 2016
Right, now i want to insert this user id into the user_usergroup_map table, and associate this user id to a group_id. Could someone help me?
GreyHead 12 Jan, 2016
Hi tiagopc,

There is a Joomla! User method for adding a User to group - see here

Bob
This topic is locked and no more replies can be posted.