Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7660123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:25:24+00:00 2026-05-31T13:25:24+00:00

i m making a e commerce website and i am little confused about the

  • 0

i m making a e commerce website and i am little confused about the manufacturers table . i have a category table in which suppose i have taken as a example
2 values “mobile phones and ipods” and the sub category table contains the category and subcategory value now the sub category has 2 values such as “gsm” and “cdma” and according to their category value “1” which is from the category table value “mobile phones”. now how would i make manufacturers table according to that the same brands would be used by many categories . can any one help me in making a neat manufacturers table . the idea i had was like i would enter the category name in manufacturers table and put the value as 1 for used 0 for not used

manufacturers table:

id  manufacturer_name  
1   Apple              
2   Htc                

Category

id  item_category
1   Mobile Phones
2   Ipods

Sub Category

id  item_category  Sub Category
1   1              Gsm
2   1              Cdma

my manufacturers table IDEA

id  manufacturer_name  Mobile Phones    Ipod's
1   Apple                   1             1
2   Htc                     1             0

the idea seems ok but i really dnt know if there is a better solution . well i case of very large number of categories suppose 30 + categories then its not possible to write each category name in manufacturers table and set their value to 1 or 0 . can anyone suggest me some better idea???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:25:25+00:00Added an answer on May 31, 2026 at 1:25 pm

    Instead of your idea, create a manufacturer_category_mapping table that joins one to the other like this:

    manufacturer_id  category_id
    1                1
    1                2
    2                1
    

    So each row is literally a mapping between a manufacturer and a category.

    This table could then have a composite key of both manufacturer_id and category_id, this would prevent you from mapping a manufacturer to the same category twice.

    Hope this helps.

    To answer the comment, 5 manufacturer_id with category_id of 1 would look like this:

    manufacturer_id  category_id
    10               1
    11               1
    12               1
    13               1
    14               1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been tasked with making an already existing e-commerce site SE friendly - which
I'm making an e-commerce site and the paypal integration is seemingly working. I have
This summer, I will be designing an e-commerce website and have chosen MySQL to
Making an adobe flex ui in which data that is calculated must use proprietary
Making a drop down list for my JSP and the values I'm entering won't
When making relations between tables (in mysql), I have encountered a naming dilemma. For
We're in the middle of making a new e-commerce related PHP application and we
Making a mobile friendly site, I have a single field and a submit button.
Making a small WCF test program which is based on a Store that has
making a multi-language site with codeginiter. I have created two folders. One for french

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.