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

  • Home
  • SEARCH
  • 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 4085698
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:37:00+00:00 2026-05-20T18:37:00+00:00

I know I am doing this wrong, so I’m hoping somebody here can help.

  • 0

I know I am doing this wrong, so I’m hoping somebody here can help. This is a little complicated, so I will try to explain this as best as I can.

I have a table of products with an id and a title. A product can have many certificates and a certificate can have many products. So far, these are my tables:

products
certificates
product_x_certificate

Here’s the problem. I need to also be able to offer products together. So let’s say I have these products:

towels
clubs
hats
balls

On one certificate, I offer towels with clubs. On another certificate, I offer towels with hats, and yet on another, I offer hats with balls. To make it even more complicated, customers have choices for each certificate. So one certificate can have multiple offerings. For instance, customers have the choice between balls and hats or towels and clubs on certificate A.

I tried creating a table called product_x_product and the fields are a_id, b_id, certificate_id, but I am running into all sorts of problems trying to display what product is offered with what product.

Any help would be greatly appreciated.

Thanks

  • 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-20T18:37:01+00:00Added an answer on May 20, 2026 at 6:37 pm

    I think you have most of the tables that you need. In *Product_x_Certificate* you can have multiple certificate IDs and multiple product IDs which means you can have a set up like this:

    Product_x_Certificate table
    CertificateID - ProductID
    45                  4
    45                  7
    46                  8
    46                  9
    47                  10
    

    This way you have one or many products per certificate which satisfies your first requirement. As for the same certificate having multiple groups of products – why not just make a new certificate ID? Then if you need to conceptually group them you could make CertificateGroup and Certificate_x_CertificateGroup tables such that:

    CertificateGroup table
    CertificateGroupID     Name
    1                       Hitting things
    
    Certificate_x_CertificateGroup table
    CertificateGroupID     CertificateID
    1                         46
    1                         47
    

    Does this help?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I might be doing this wrong, if I am, let me know, but I'm
I'm mot sure if I'm doing this wrong or not I don't know if
I know I must be doing something simple wrong. When I do this: echo
I know almost nothing about linq. I'm doing this: var apps = from app
OK. This problem is doing my head in. And I don't know if there
I know I can get the public static members of a class by doing
I think I've been doing this wrong for the past year and a half
I think I'm doing this wrong but this is what I have... if($_GET['color']) {
I can't seem to get a custom action working. I might be doing this
I have a feeling I'm doing this horribly, horribly wrong. Nested for loops? What

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.