473,327 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Database structure for categories and subcategories

Hy i am a new learner here. i start to create site

where have 3 category like(man;women;kids)and sub-category
(man shirt ;man woven;man sweater) same also women and kids

how way i star my database and table and which would be my sql query ?? can any one help me plz
Jun 19 '12 #1
8 2889
ucu13
14
maybe if you can give more details. ex for men you gave some details.you can try this: create a database "store" or whatever, then create a table category that contains man,women,kids,and the id. then create the second table with materials. with columns: id,id_category,material;

for example:

store: category: id, category
1 man
2 women

material: id, id_category, materials
1 2 woven
2 2 shirt
3 1 shirt
if you cant give me more details, i cannot help more
Jun 19 '12 #2
Thanx you

it would help me little more.

http://www.phpwebcommerce.com/// this address you give some clear concept what i want to do?

thanks you again.
Jun 19 '12 #3
Hellow dear ;
how query i submit to pss data in various link page
from "material" table.

THANKS
Jun 20 '12 #4
please mention what is pss
Jun 21 '12 #5
Thanks kavinhuh:

I like to say which query i pass to get data result for my index page and link page

thanks again
Jun 21 '12 #6
store: category: id, category
1 man
2 women
material: id, id_category, materials
1 2 woven
2 2 shirt
3 1 shirt
***from "material table" how way i got my product view like;
index page
1>man shirt<link page>
2>man sweater<link page>
3>women shirt<link page>
2>women sweater<link page>
3>kids sweater<link page>
Jun 21 '12 #7
ariful alam
185 100+
If you are doing this using ASP.net for your site interface, then ASP.net has component named "Menu". This can show like below.

Man
--->Shirt
--->Sweater
--->Woven
Woman
--->Shirt
--->Sweater
--->Woven
Kids
--->Shirt
--->Sweater
--->Woven

to do this you need to query the followings and link those in code like relationship.

1. select * from store
2. select * from material.
Jun 22 '12 #8
THANKS ariful alam BHAI BUT I WORKING IN PHP;MYSQL
Jun 23 '12 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Roderik | last post by:
Hi, When developing a website in general when should I choose to put content in a database. For menu options, settings, and listings like products it seems to be clear for me to put them in. But...
0
by: Cherrish Vaidiyan | last post by:
sir, The following are the steps that i followed in setting up standby database on Red hat Linux 9. i am using Oracle 9i. i have followed the steps in this site : ...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
8
by: Kamlesh | last post by:
Hi, How do I know the physical database path of a database. When I goto the DB2INSTANCE users's directory (/home/db2inst1), I see following folders: /db2inst1/NODE0000/SQL00001...
1
by: pintur | last post by:
The message is: SQL1036C Errore di I/O durante l' accesso al database. SQLSTATE=58030 what is the proble? what for restore tables? thanks
3
by: josh.kuo | last post by:
Sorry about the subject, I can't think of a better one. I recently wrote some PHP classes that I think might be of interest to this group. Since I have been reaping the benefits of reading news...
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Laurynn | last post by:
# (ebook - pdf) - programming - mysql - php database applicati # (Ebook - Pdf)Learnkey How To Design A Database - Sql And Crystal Report # (ebook-pdf) E F Codd - Extending the Database Relational...
9
by: Peter Duniho | last post by:
Is there a straightfoward API in .NET that allows for inspection of a database? That is, to look at the structure of the database, without knowing anything in advance about it? For example,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.