0

MySql relation need help asap

So 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, 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, can i have an example of code in php, in urgent need of help, thanks in advance

23rd Mar 2019, 2:42 PM
Danial Zulkarnain
Danial Zulkarnain - avatar
1 Resposta
0
://If user matchs current user then add details
23rd Mar 2019, 6:40 PM
Sudarshan Rai
Sudarshan Rai - avatar