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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

WADAProducts Recordset won't open in DW Bindings Panel

Thread began 10/16/2009 5:56 pm by jstoler155201 | Last modified 10/19/2009 2:24 pm by Jason Byrnes | 1297 views | 3 replies |

jstoler155201

WADAProducts Recordset won't open in DW Bindings Panel

The WADAProducts recordset, the main one, works just fine on the testing server and the client host server, but the bindings panel won't open.

Local and host running PHP 5.2.6 and MySQL 5.0.41 local, 5.0.87 host.

Throws MySQL Error# 1064 "..errors in syntax..near.."at line 2.." when I try to open the panel.

I can open the Server Behavior part just fine, and I did change the product table by adding a field in the DB only, and am needing to add some more.

Any advice, please.

Thanks,
Jay

Sign in to reply to this post

Jason ByrnesWebAssist

the recordset is too complex for Dreamweaver to parse.

a work around is to change the code to a simple recordset, use the binding panel, then change the code back.

For example, on the product resuts page, look for the following:

php:
$query_WADAProducts = "SELECT *, (ProductStock - (SELECT Coalesce(Sum(DetailQuantity),0) FROM orderdetails INNER JOIN orders ON OrderID = DetailOrderID WHERE DetailProductID = ProductID AND OrderDate > ProductUpdateDate)) AS NumLeft, (SELECT MAX(ProductPrice) FROM products as prod2 INNER JOIN productoptions ON productoptions.ProductID = prod2.ProductID WHERE  productoptions.GroupingID = products.ProductID AND prod2.ProductLive <> 0) AS TopPrice, (SELECT MIN(ProductPrice) FROM products as prod2 INNER JOIN productoptions ON productoptions.ProductID = prod2.ProductID WHERE productoptions.GroupingID = products.ProductID AND prod2.ProductLive <> 0) AS BottomPrice FROM products  LEFT OUTER JOIN productcategories ON ProductCategoryID = CategoryID WHERE ProductLive <> 0 AND COALESCE((SELECT GroupingID FROM productoptions WHERE productoptions.ProductID = products.ProductID LIMIT 1), ProductID) = ProductID";




and change it to:

php:
$query_WADAProducts = "SELECT * FROM products";




after you have made the necessary changes using the bindings panel, change the recordset back to the priginal.

Sign in to reply to this post

jstoler155201

That is what I need to know

Thanks, Jason. That will do what I need. Never thought to cut and paste and substitute a simple recordset. Great workaround.
Best,
Jay

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

Sign in to reply to this post

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