大家好PHP和mysql noob在这里 p>
我正在创建一个表单 创建新用户
并同时添加联系人 我需要新 user_ID strong>来引用 tbl_contact strong> strong> p>中的 user_ID strong>(FK)
我怎么办? p>
div>
而用户 strong>和联系人 strong>位于两个不同的表中 p>
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?
大家好PHP和mysql noob在这里 p>
我正在创建一个表单 创建新用户
并同时添加联系人 我需要新 user_ID strong>来引用 tbl_contact strong> strong> p>中的 user_ID strong>(FK)
我怎么办? p>
div>
而用户 strong>和联系人 strong>位于两个不同的表中 p>