dongqing904999
dongqing904999
2016-03-07 01:37

将新创建的id值作为外键插入另一个表的列中

  • php
  • mysql

Hello everyone PHP and mysql noob here

I'm creating a form to create a new user and at the same time add a contact
but user and contact are in two different table

and i need the newly user_ID to reference the user_ID(FK) in the tbl_contact

how would i do it?

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答