Yii Framework Forum: Insert Data into two table through one form - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Insert Data into two table through one form

#1 User is offline   Anil ASR 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 04-January 16

Posted 04 January 2016 - 03:19 AM

there are two table in database:
1)asset => asset_id,asset_name.
2)destroy => destroy_id,asset_id,comments,destroy_type.
my question is........
open asset form but show only comments and destroy_type not show asset name field asset table
and write a coments and destroy type just like this commentz=asd and destroy_type=asa
currently available in asset form and clik ok button then save destroy table asset_id ,comments,destroy_type
so please help me how's possible. in yii 2
0

#2 User is offline   jrishi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 09-December 15
  • Location:India

Posted 27 January 2016 - 01:06 AM

I am also facing the same problem. When I press the submit button it shows me the warning that my dates were inserted, but only the second insert works. Table "donator" is empty. What should I do to fix this problem?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users