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 7967967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:00:13+00:00 2026-06-04T07:00:13+00:00

What would be the best way to design a mysql table, which can be

  • 0

What would be the best way to design a mysql table, which can be filled with HTML (+PHP) form.

Actually I have this structure:

Table PRODUCT

ID | Ordernumber | Name | Desc | Price

Table PRODUCT_KIDS

ID | MasterProductID | Ordernumber | Price

The only difference between my 2 tables are Name and Desc.

The ADD HTML form looks like this:

DATA FOR PRODUCT

Ordernumber
Name
Desc
Price

DATA FOR PRODUCT_KIDS

Ordnernumber
Price

For some reasons, the customers want for example only 2 PRODUCT_KIDS without their MasterProduct. In this case I need the Name and the Description from the Master-Product.

My questions are the following:

  • Should I merge these two tables together? Is this the best way to search for something?
  • When I merge these 2 tables, should I save the Name & Desc for the PRODUCT_KIDS as well (for the example above)?
  • 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-06-04T07:00:14+00:00Added an answer on June 4, 2026 at 7:00 am

    what would be the best way to design a mysql table which can be filled with HTML (+PHP) form.

    Who cares? Contrary to popular believe, MySql is JUST ANOTHER relational database and PHP just another web scripting technology. The answer is the same whether you use mysql + php or oracle + java or sql server + asp.net.

    The principles of relational database design apply to any relational database. As such, the question is not related to MySql and particularly not at all to PHP.

    Table PRODUCT

    Table PRODUCT_KIDS

    This is a simplistic view on the topic that leaves out a lot of even legal items, such as possible international taxation, different shipping codes and their prices (not all items can be combined in one shipment) and for example customization of items in general – I remember writing a shop where PIPES where sold, in custom lengths ๐Ÿ˜‰ And some items requires separate shipping ๐Ÿ˜‰

    "The Data Model Resosource Book", Volume 1, discusses standard enterprise scnearios in great depth – including address management (not as simple as most people do it), accounting and…. the whole shop blabla (storage, inventory, pricing). BOTH (!) of your approaches are simplistic and would be totally illegal in my juristidciton because it would not take into acocunt legal requirments for properly tracking taxation on various products.

    I can only suggest gtting it – they also go in great depth on some of the industry level particularities. For example ๐Ÿ˜‰ – Apparel. Make a shop for cloths and you go nuts on "variatns in size AND color for the same product". Your approach would result in a "shirt" possibly having 200 children (sizes * colors) ๐Ÿ˜‰

    I would suggest: back to the drawing board. With a good book ๐Ÿ˜‰ I personally loved reading this book – hm – a long time ago.

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

Sidebar

Related Questions

What would be the best way to accomplish something like this? Suppose I have
In Java, what would the best way be to have a constantly listening port
What would be the best way to have a list of items with a
What's the best way to design/use my model and NSFetchedResultsController so that I can
What would be the best way to design a packing / converting stream proxy
I want to make a code snippet database web application. Would the best way
What would be the best way to fill a C# struct from a byte[]
What would be the best way to implement a simple crash / error reporting
What would be the best way to calculate someone's age in years, months, and
What would be the best way to expose certain functionality in a Dotnet VSTO

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.