Let's say I have 2 tables in the database, first table is userregistration and 2nd table is userdetails. In table userregistration, the primary key that I use is called id and it is auto increment.
So let's say I have insert one user and the id of the user is 1, and then I want to insert the details of the said user, how do I make sure the id is also the same as in the userregistration table?
Already read about last_insert_id, but I can't understand how to use it.