I have two tables, but in table1 I have the id_client then I would like the data in table2 to be loaded based on the client_id of table1 How could I do this in the script of my app?
In my table2 I have the purchases of the client and in the table1 general data of the client.