close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

More questions

Thread began 7/08/2010 10:37 am by nathan | Last modified 7/09/2010 2:07 pm by nathan | 1154 views | 3 replies

nathan

mySQL tables

With the .zip file that I included (hope it turns out okay), I am trying to show what I am trying to do. I have a table set up for the products (which includes all the details). As the document shows, each product will fall into a main category, which further falls into a subcategory.

I have very little (almost none) experience with mySQL and myPHPAdmin (I am learing). Here is my understanding: I should set up a table for products and table for the main categories. Then I need to set up a table for the subcategories (a table for each main category). I should include the category and subcategory as columns in the products table.

Now how to link them? Each of the tables (category and subcategory) should have a ID column and the type column (gps, avionics, etc.). The ID column should be linked to product table as a foreign key. How to do set up the linkage and does mySQL save it automatically? I tried several times and it doesn't seem to save.

Am I going in the right direction? I want the site visitor to be able to search for products by the following way. From a drop down menu, choose a category (such as GPS), then choose a subcategory (such as Panel-mounted) from another drop down menu. Depending on what main category is chosen, the correct subcategory would be appropiated. Is this possible with Data Assist?

I know that this is a lot, but I am learning. You guys thus far have been very helpful. My knowledge in mySQL and myPHPadmin is very weak. Again, thanks for your help.

Attached Files
Category list.zip

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...