V
V
Vyacheslav Alekseevich2017-06-26 17:18:59
JavaScript
Vyacheslav Alekseevich, 2017-06-26 17:18:59

How to bind a database to a user?

Hello, friends!
I am a student (already a graduate student) in my free time I study objective c (a little more than six months), in a year I have a diploma. As a graduation project, I want to implement an application for notes, here's the question itself:
I can create a user registration form (with sending data to the php mysql database (this is important, everything should be stored outside the phone)), according to the same principle, I can implement the creation of a note by the user, the question is, how can I link the user and his notes so that when he logs out and logs in, he can see his own notes?
Thank you!
I would like in a nutshell, indicate the direction in which direction to go ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RAX7, 2018-12-01
@blackangelada

onkeyup="document.getElementById('hiddensumm').value = parseFloat(this.value).toFixed(2)"

K
kpa6uu, 2017-06-26
@Slavchik

the user's table usually contains an id column.
in the note table, create a user_id column that will contain the id of the user who owns the note.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question