I want to insert data into two tables of mysql,
Tables are as follows:
1) t_entity_details 2) t_preferences
Columns inside the table are as follows:
t_entity_details
- Entity_id (primary key, auto-increment)
- First_Name
- Sex
- TagLine
- Personal_Desc
- DOB
- Lang
t_preferences
- Entity_id (primary key too, No auto-increment)
- other columns......
Now when I submit a form, the Entity_id should be same in both the tables. So how to do that? Please help me with this.