Solved

Best way to display a sub sub menu

Posted on 2012-03-30
2
264 Views
Last Modified: 2012-03-31
I have a product database working fine.

Products are assigned a main category and a sub category.

What I need to add are product options so the 'rosary beads' sub category will have colour options...red, black, white etc...

I'm wondering what is the best way to do this? A separate 'options' table with the id from the product table?

So the table would be something like...

id   option
13  red
13  black
13  white
14  large
14  medium
14  small
Screen-shot-2012-03-30-at-18.13..png
0
Comment
Question by:BrighteyesDesign
2 Comments
 
LVL 24

Accepted Solution

by:
johanntagle earned 500 total points
ID: 37789518
Yes, that would be the most straightforward way to do it.
0
 

Author Comment

by:BrighteyesDesign
ID: 37790204
Cheers John, I'll crack on with that then, just wanted to make sure!
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question