close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Database help

Thread began 8/02/2010 3:01 pm by sculptx411634 | Last modified 8/04/2010 9:46 am by sculptx411634 | 1422 views | 5 replies

Jason ByrnesWebAssist

OK, so the products table would have 2 records:

ProductID | ProductName
1 | Boxer Brief
2 | Crew Neck Undershirt


In the OptionGroups table, you would have 2 options:
OptionID | OptionName
1 | Color
2 | Regular Size
3 | Big Size
4 | Tall Size

the Options table would create the options for each group:

OptionID | OptionGroupID | OptionName
1 | 1 | red
2 | 1 | yellow
3 | 1 | Blue
4 | 2 | Small
5 | 2 | Medium
6 | 2 | Large
7 | 3 | Small
8 | 3 | Medium
9 | 3 | Large
10 | 4 | Small
11 | 4 | Medium
12 | 4 | Large


now that the options are created, you assign them to the product through the Productoptions table.

you need to create one record for each option the product can have. for example if the product comes in:
Color: red and yellow,
regular size: Small and Medium
Big Size : Medium and Large
Tall size: Small and large

you would need to create 8 records:
productOptionsID | ProductID | OptionID | OptionGroupID
1 | 1 | 1 | 1
2 | 1 | 2 | 1
3 | 1 | 4 | 2
4 | 1 | 5 | 2
5 | 1 | 8 | 3
6 | 1 | 9 | 3
7 | 1 | 10 | 4
8 | 1 | 12 | 4

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...