Hey guys,
i have a problem and don't really know, what to search for to find a solution.
Description:
I have a mysql table with the following colums "id", "name", "value", "parent" with "id" as primary key. "id" is a autincreament number, "name" is the name of the category, "value" is the value of the category and "parent" is the parent name(category) for this row. How can i show this table in the correct order, means sorted by their parent name.
example:
sql:
id | name | value | parent
1 | n1 | bla1 |
2 | n2 | bla2 | n3
3 | n3 | bla3 | n1
html:
n1 bla1
n3 bla3
n2 bla2
Please help me out with some codesnippet or helpful link...any help apreciated. Thanks in advance for your help.