Solved

Best way to display a sub sub menu

Posted on 2012-03-30
2
265 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses four methods for overlaying images in a container on a web page
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.

685 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