I tried searching around but could not find the answer, because maybe of my keyword, but I am hoping someone could help. I have two tables like this :
+----+---------+
| ID | Parents |
+----+---------+
| 1 | David |
| 2 | Peter |
+----+---------+
The other table is:
+----+------------+------------+
| ID | Parents_id | Child_name |
+----+------------+------------+
| 1 | 1 | Mike |
| 2 | 1 | John |
| 3 | 2 | Chris |
+----+------------+------------+
Now on my browser, i wanted to have list something like this,
+---------+----------+
| Parents | Children |
+---------+----------+
| David | - Mike |
| | - John |
+---------+----------+
| Peter | Chris |
+---------+----------+
Can use php or jquery to get it done.