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

Repeat Region does not work with complex queries

Thread began 1/26/2016 12:36 am by Ron | Last modified 1/28/2016 10:48 pm by Ray Borduin | 185 views | 3 replies |

Ron

Repeat Region does not work with complex queries

Repeat Region does not work with complex queries. Only 1 row is returned. When executing the same query in MySQL Workbench, the correct number of rows are returned.

WEBASSIST CODE:
------------------------------------
$Recordset1->setQuery("SELECT * from variety LEFT JOIN testresults ON variety.variety_id = testresults.testresultsVariety_id
LEFT JOIN growingseasons ON testresultsGrowingSeasons_id = growingseasons_id
WHERE growingseasons_id = '3' ORDER BY variety.variety_id);
$Recordset1->execute();
------------------------------------


HTML/PHP Code:
---------------------------------------
<ul id="list1">
<?php
while(!$Recordset1->atEnd()) {
?>
<li><?php echo($Recordset1->getColumnVal("varietyName")); ?></li>
<?php
$Recordset1->moveNext();
}
$Recordset1->moveFirst(); //return RS to first record
?>
</ul>
-----------------------------------------------------------

Total number of columns with the 3 tables are 44.

Sign in to reply to this post

Ray BorduinWebAssist

When declaring the recordset object (the line above the one you included) it has an argument of the maximum number of rows to return. If you set that to 0 it will return all rows... I'm assuming yours is set to 1.

Sign in to reply to this post

Ron

Found the issue. It was the 0 vs. 1 in the Record Set. As complex queries don't consistently show up in the Bindings Panel, I recycled on and didn't change the 1 to 0.

Why doesn't modified/complex have weird display behaviors in the Bindings Panel?

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure. We tap into the native Dreamweaver code for doing those. Maybe we should redo them in a future update.

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