0

i am looking for some advice on what is the best approach to get this done :)


my datababase holds a table categories

with the columns

|category_id|category_name|category_parent_id|

i am showing my users a html sortable table with the following columns

|category_id|category_name|category_parent_name|

so what i want, is to do a ORDERBY on the category_parent_names so i would like to have a temp extra column like

|category_id|category_name|category_parent_id|category_parent_name|

so i can sort on category_parent_name.

What is the best way to go on this?

1
Contributor
1
Reply
4
Views
5 Years
Discussion Span
Last Post by Frankey
0

i created

|category_id|category_name|category_parent_id|category_parent_name|

as a array in php and sorted it :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.