close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Error in SQL Syntax

Thread began 2/12/2015 9:50 am by randyrie405335 | Last modified 8/10/2015 2:07 pm by randyrie405335 | 1304 views | 10 replies

anonymous

jenniferR

I'm having this same issue. I just purchased and downloaded installed both DWCC and the webassist extensions.

I have one report page that has about 20 recordsets. I've deleted old and replaced with MySQLi recordsets. I've updated all the fields. I've removed the security and replace with Secure Page wizard. This works on other pages.

About 99/100 times when I try to use the record count feature in the webassist extension, it crashes DW before the wizard box can fully load. The one time it works, it gives the code:

<?php echo $recordset->TotalRows; ?>

However when you begin to type in $recordset and then type in -> the available actions pop up for you to select. TotalRows does not appear in this list. It seems to me that the wizard creates a sequence of code that is in conflict with the programming.

When I try to load the page it get "Error in SQL syntax". When I do a find on this phrase on my entire current site, it only appears once in the code. In the rsobj.php file in the webassist directly. Specifically this part:

public function execute() {
$statement = $this->Statement;
if ($this->MaxRows && !isset($_GET['totalRows_'.$this->Name])) {
$statement = preg_replace('/^select /i',"SELECT SQL_CALC_FOUND_ROWS ",$statement);
}
if ($this->MaxRows) $statement .= " LIMIT ".$this->StartLimit.",".$this->MaxRows;
$query = $this->Connection->Prepare($statement);
if (!$query) {
die("Error in SQL syntax");
return;
}

I've deleted the rsobj.php file and recreated it as described above. I've deleted my webassist directly on my remote server and reuploaded it from my local server.

Nothing seems to fix this error.

I'm reluctant to remove all instances of my total rows code since for each section i use it to hide or show div's based on if totalrows > 0.

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