I have two tables in my database, one with some userinfo (usersTable) and another one with submissions (submissionsTable).
usersTable has an pk usersId, so everytime someone registers they get a certain Id.
When a registered person submits something, the submission goes to submissionsTable. I put a usersId in submissionsTable that I would like to match with the usersId from usersTable. So for example everytime someone with usersTable.usersId = 15 submits something, I want submissionsTable.usersId to be automatically 15. I have no idea how, I'm stuck.
Can anyone help?