close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Product Options - Metal/Color and Size

Thread began 9/19/2011 2:39 pm by Patbyrne322425963 | Last modified 11/01/2011 9:50 am by Patbyrne322425963 | 2674 views | 31 replies

Jason ByrnesWebAssist

Sorry, I must have read your initial post to quickly and did not get the fact that you where intentionaly using the ProductCategory.



ok, so going back to the original post, you had the SQL as:

  I have this in the SQL for rsMetal:

SELECT productoptions.OptionPriceincrement, productoptions.ProductOptionID, options.OptionName, options.OptionGroupID, optiongroups.OptionGroupName
FROM options INNER JOIN productoptions ON options.OptionID = productoptions.OptionID INNER JOIN optiongroups ON options.OptionGroupID = optiongroups.OptionGroupID
WHERE optiongroups.OptionGroupName = 'Metal' AND productoptions.ProductCategory = paramItem

With ParamItem default value: -1, runtime value: $row_WADAproducts['ProductCategory']  




your on the right track with this, but there are a couple problems in the code you posted in message 8:
showpost.php?p=110018&postcount=8

that will prevent this from working.

1) the products recordset on this page is not named "WADAproducts", it is named "products". the runtime value for ParamItem should be:

php:
$row_products['ProductCategory']




2) Code order. the rsMetal recordset is before the products recordset. To be able to use the value of the products recordset in the rs metal recordset, you will need to rearrange the code so that the products recordset is before the rsMetal recordset.

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