fetch data into MySQL table and php [duplicate]

1

I have table A with the id and user fields and table B with id, data and id_A; In the PHP page I want the contents of table B to appear, and with the id_A to search for the name in table A. The main thing for me would be to search for a table in another one, since the content can already be sent to the page.

    
asked by anonymous 06.06.2018 / 06:15

1 answer

0

You have to relate the tables in select, try:

SELECT b.id, b.dados FROM tablela a, tabelab b WHERE a.id = b.id 
    
06.06.2018 / 14:00