N-Level category

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

N-Level category

Post by eshban »

Hi everybody,

Can anybody send me the script that how can i display N-level categories in a combo box when updating an item.............
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The code depends greatly on how you supply the information needed to generate such a list. I don't think anyone can guess how you are doing this.
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

Post by eshban »

i have 2 tables named category & categoryref

Category: (catid, catname)

Categoryref: (newid, catid, parentid)


and i have the structure of the page like this:


Category: _______ ( Here all the categories and its sub-categories have 2 be displayed in a combo box like a tree)


Item Title: _______
...
..
.
Post Reply