Menu
Hi!
I need to create a dynamic html table with php function but I’m in trouble.
I have a table in my db with some records, some og them are father and other are children: for children I have parent_id field that indicate father id.
Html table is characterize by a first line with <td> tag (many as father), and a second line with children at the same <td> tag of father.
Something like this:
FATHER1 FATHER2 FATHER3
CHILD1_1 CHILD2_1 CHILD3_1
CHILD1_2 CHILD2_2 CHILD3_2
I create query to get father, but I can’t manage cycle to obtain my result, can you help me please?
Thanks!