jeudi 25 juillet 2019

I need way for returning data from database table and attaching it to the user that is currently logged in

I have a question about getting data from one particular table. So basically I have this table that is not connected to any other tables. I need to get that data and to show it only to the user that is currently logged in. That table contains id and secondary id that is the same as the secondary id of the other table that is connected with the USER table.

So basically, the structure would look like this: 2 tables are connected over their primary id's. One of those 2 tables is the USER table. One of those 2 tables as the field contains id(not primary) that is the same as the field with id(not primary) inside the third table that is not connected to those 2 tables.

So my question would be, is there any way of getting data from that separated, third table? Any help would be great! Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire