Using this table i would like to maintain a structure like this (in drop down menu).Table :- test category_id | category_name | main_category | +-------------+------------------------+---------------+ | 1 | One | 0 | | 2 | Two | 0 | | 3 | Three | 0 | | 4 | Four | 0 | | 5 | Six | 1 | | 6 | Seven | 1 | | 7 | Eight | 1 | | 8 | Twelve | 2 | | 9 | Thirteen | 2 | | 10 | Nine | 5 | | 11 | Five | 0 | | 12 | Ten | 10 | | 13 | Eleven | 5 |
I am using this query to solve this problem...One Six Nine Ten Eleven Seven Eight Two Twelve Thirteen Three Four Five
Could you pls help me solve this problem?Query 1 :- Select category_id from test where main_category='0'; Query 2 :- Select category_id from test where main_category=(result f +rom query 1)
20030319 Edit by Corion : Added formatting, retitled node
In reply to Using SQL to create menu entries (was: Could u pls help me to solve....) by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |