Jump to content

MYSQL insert id into 2 tables dilemma


dsp77

Recommended Posts

I have two tables in the data base: first one contains id(auto increment) username pass type

the second one contains information about the user and another record idUser.

What i need is a mysql query that would insert the user into the first table and at the same time inserting the id(auto increment) from first table in the second table in IdUser record.

i tried a few things but none working please help. 

Thank you!

Link to comment
https://forums.phpfreaks.com/topic/205722-mysql-insert-id-into-2-tables-dilemma/
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.