Please help, how to input and update the fields according to the current user login with a different table name

Greetings

please help, how to input and update the fields according to the current user login
with a different table name
tabel user
image

tabel m_mahasiswa

assuming data_mahasiswa is a reference to the current user you can modify the thing finding it with a search where data_mahasiswa is current user