i am creating a navigation list(Categories + sub categories) in the left bar of my website.
Each Category has around 5-7 sub categories under them.
MOBILE PHONES [COLOR="#FF0000"](this is category name)[/COLOR]
1) Nokia[COLOR="#FF0000"] (these below are sub categories)[/COLOR]
2) Samsung
3) Sony
4) Motorola
5) Apple
6) Blackberry
at present they are displayed in a general loop acording to the number they were entered.
now i want to change the “display order” of sub categories.
means I want to move
"Sony" at No. 1
"Blackberry at No.2
"Samsung" at No. 3
Indeed. In order to order the data from the table in a specific order (doh) the table must have a column that contains the order criterium. So if you want to be able to change the order at will, you’ll need to have a ‘listorder’ column and add ’ ORDER BY listorder’ to your query.