php - How to display data in a tree structure basen on column values -
i've table structure :
and want display data in following format :
a 1 2 3 a1 4 5 a1 a2 6 7 b 8 9
i'm using php mysql , i'm not able think how query db.
you can begin following query:
select * yourtable order category_1, coalesce(category_2, ''), coalesce(category_3, '')
Comments
Post a Comment