How do I show the parent's name on the table?

How do I show the parent's name on the table?

EricDEricD Posts: 11Questions: 0Answers: 0

Hi,
My name is Eric, I do not speak English very well, but if anyone can help me please.
How do I show the parent's name on the table above?

link: doghouse.epizy.com/pets.php

Thanks

Replies

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin

    You need to use a join as described here.

    Allan

  • EricDEricD Posts: 11Questions: 0Answers: 0

    Hi Allan,

    Thanks for the reply, i made some changes but it's not working as I expected.

    doghouse.epizy.com/pets.php

    I'll try other approaches with datatables later.

    I can make it work without datatables using 2 sql statement separately but i wanna make it work with datatables

    Thanks anyway

  • EricDEricD Posts: 11Questions: 0Answers: 0

    Hi again

    Sorry, i made some mistake on left join, now i got it working as you can see

    doghouse.epizy.com/pets.php

    Thanks again

This discussion has been closed.