Monday, May 22, 2017

How to format array with relations parent-child?

I have the typical structure of table in MySQL.

id | parent_id | name | object_id 
1    0           G      1
2    1           T      1
3    1           R      1

How to build result array with values of parent/child when I select data by object_id?



via Blablacar

Advertisement