Jump to content

Dynamic DB record creation


pradeep79

Recommended Posts

Hi, I'm creating an application in PHP/MySQL. My problem is I need to create a user account in the DB and then put the primary key of the user, i.e the user ID into various tables as foreign key. How do I write the script? Do I first create the user record in the table and retrieve the ID and insert into other tables with PHP script? Or, could it be done in the database with stored procedures?

Link to comment
https://forums.phpfreaks.com/topic/44709-dynamic-db-record-creation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.