
07-18-2007, 09:06 PM
|
|
Junior Member
|
|
Join Date: Jul 2007
Posts: 3
|
|
Urgent Help needed to Add Unlimited Categories and Sub Categories
Hello,
(I want to use PHP/HTML interface and have a MySQL database)
I am trying to figure out for a long long time how can I make a page where I provide user to add categories like fun, entertainment etc and then he can add any sub-category to any of these categories and so on.
For eg >
Level 1 Fun Christmas Entertainment
Level 2 Christmas-> American Christmas
Level 2 Christmas-> European Christmas
Level 3 Christmas-> American Christmas-> New York Christmas
Level 3 Christmas-> American Christmas-> Chicago Christmas
and so on and all this data gets stored in a database.
Now I understood that I need a table categories in database with parameters
cat_id,cat_name and parent_id to do this and have multiple categories.
I am very new to all this stuff and have no clue how to start
What to display on main page, how to display categories and how to provide user with an option to add sub categories.
I would be very thankful if someone who has done similar thing can help and provide me with some sample code of similar stuff.
I need help very urgently.
Please reply sooon.
Thanks
|