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

Expanding WADA _Products Query

Thread began 8/23/2009 1:01 am by Nigel | Last modified 8/27/2009 9:05 pm by Nigel | 1552 views | 4 replies |

Nigel

Expanding WADA _Products Query

When I go to the bindings panel and expand the recordset WADAProducts, I get this error:

MySQL Error#: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2.

So I tried to re-create my local Products table from the one on the server to make sure it was up to date and compatible, but running the create table query gives:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"products" (
"ProductID" int(12) NOT NULL auto_increment,
"ProductSKU" var' at line 1

SQL for that table:

CREATE TABLE IF NOT EXISTS `products` (
`ProductID` int(12) NOT NULL auto_increment,
`ProductSKU` varchar(50) NOT NULL,
`ProductName` varchar(100) NOT NULL,
`ProductPrice` float NOT NULL,
`ProductWeight` float NOT NULL,
`ProductCartDesc` varchar(250) NOT NULL,
`ProductShortDesc` varchar(1000) NOT NULL,
`ProductLongDesc` text NOT NULL,
`Specs` text,
`Accessories` text,
`ProductThumb` varchar(100) NOT NULL,
`ProductImage` varchar(100) NOT NULL,
`ProductCategoryID` int(11) NOT NULL,
`ProductUpdateDate` timestamp NOT NULL default CURRENT_TIMESTAMP,
`ProductStock` float default NULL,
`ProductLive` tinyint(1) default '0',
`ProductUnlimited` tinyint(1) default '1',
PRIMARY KEY (`ProductID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;

I finally got this to work by exporting the table and saving as a file, then importing that query from the file. But still get the 1064 error when trying to expand the recordset.

I'm running WAMP5 (MySQL 5.0.45) locally, 5.0.81 on the server.

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

On what page are you trying to open the WADAProducts recordset? That recordset occurs on a number of different pages all with slightly different SQL.

Sign in to reply to this post

Nigel

Hi Jason.

I think it happened on a few pages that have the WADAProducts recordset. It definitely happens on both versions of Products_Detail.php (front end page and Admin page). All the other recordsets on those pages could be expanded.

Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

The query we are using is too complex for the DW recordset to follow. You would have to update it in code view.

We will probably define a query in the mySQL database in the next version of Powerstore so that the recordset query can be simplified and made editable in DW server behaviors.

Sign in to reply to this post

Nigel

Thanks Ray, that's what I did.

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