There is such a table with a hierarchy, how to display it in a html table with grouping?

pid - id of the parent category

level - hierarchy level

enter image description here

Closed due to the fact that the question is too common for the participants cheops , Mike , VenZell , zRrr , Kromster 10 Jun '16 at 4:24 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Your question needs to specify specifics. What you do not understand exactly: how to display information using php, how to execute database queries from php, how to group data into SQL or something else? Moreover, you did not specify exactly how the hierarchy level should affect the output information. - Geslot
  • It is not clear to me how to write an output function in php so that the data is displayed in html as a table with grouping by hierarchy. I mean that it is necessary to insert table tags in a cycle. - unit

0