close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Setting up Database

Thread began 10/11/2011 10:22 pm by goat200487425014 | Last modified 10/17/2011 11:54 am by Jason Byrnes | 907 views | 9 replies |

goat200487425014

Setting up Database

I am having trouble setting up a database. I am a beginner and I am really grinding my teeth with this. Any help would be appreciated. I have watched the tutorials, but I still can't grasp what to do. Can anyone point me in the right direction? Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

Please provide some more details.

What step are you having difficulty with.

are you trying to use the MySQL eCommerce database:
ecommerce-database/

The learning resources page has a tutorial for "How to import a MySQL (.SQL) file to your database":
resources.php

are you getting stuck trying to follow this tutorial?

if so, What step?

Sign in to reply to this post

goat200487425014

I wasn't aware of the MySQL eCommerce database, but I know I was missing something like that. I will give this a try tonight and will post back with more detailed info/questions.

Sign in to reply to this post

goat200487425014

Where do I go to add my products to the database?

Sign in to reply to this post

Jason ByrnesWebAssist

You would need to use a MySQL GUI Tool such as PHPMyAdmin, Sequel Pro or Sequel Yog to edit the data base directly.

or use a tool like data assist to create back end admin pages to insert products through your website.

Sign in to reply to this post

goat200487425014

Can you give me a a little breakdown of what the following fields from the WebAssist Free eCommerce MySQL database represent and examples?

productoptions

ProductID -

OptionID -

OptionGroupID -

OptionPriceIncrement -

Are any of these fields for putting sizes for products?

Also how would I be able to add the right weight if the larger sizes weigh more then the smaller sizes, would I just leave the weight column empty when I add a product?

Sign in to reply to this post

goat200487425014

Ok so I believe I got the above question figured out......but now I am stuck on getting the thumb to show in cart. I have uploaded the pic to my MySQL database. How do sync the pic to my products databse? The pics are in a database called pix as you can see in the screenshots below.

Sign in to reply to this post

Jason ByrnesWebAssist

the images should not be stored in the database using the blob data type.

In your products table, create a column for the productImage

in that column, store the image file name:

myProduct.jpg

the files should be stored in a folder on your site, for instance:

productImages/myProduct.jpg


the productImage column in the products recordset will return the file name. in your img tag, you can use the data from the recordset:

<img src="productImages/<?php echo $row_RecordsetName['productImage'] ?>" />

Sign in to reply to this post

goat200487425014

Does that work for the product thumb as well?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you would have a another column for the thumbnail as well, and use the same technique.

Sign in to reply to this post
loading

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