hi ter,
i have two table
User
id,
name,
emel,
password,
Contact
name,
address,
hp,
tel,
relation,
user_id(fk)
The issue is,a user can have more contact details.
how to define in model that contact has many to user table.
also how to insert contact data(multiple rows) in controller?
any idea pls suggest ?
i have two table
User
id,
name,
emel,
password,
Contact
name,
address,
hp,
tel,
relation,
user_id(fk)
The issue is,a user can have more contact details.
how to define in model that contact has many to user table.
also how to insert contact data(multiple rows) in controller?
any idea pls suggest ?