i have a database with 2 tables:
Table user:
[user_id (pk),username,password,email]
and
Table posts:
[post_id (pk),username_posted,post]
I have created a login-registration system with the first table, and I want, when my user logs in, to post a text by pressing a button. In the second table, I want to store the post_id
, the username of the person who posted, and of course the post he made.
How can i connect these two tables?