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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cannot bind records

Thread began 2/17/2016 2:36 pm by nmc381879 | Last modified 2/18/2016 6:51 pm by Ray Borduin | 575 views | 13 replies |

nmc381879

Cannot bind records

I've created a recordset in MySQLi, but it is ALWAYS limited to one record. It appears on the bindings tab, but only the "insert" button is available at the bottom, as the "bind" button is greyed out. My querry is ALWAYS rewritten to add the "limit 1" commands, even after I delete it. I want to return an array of records so that I can assign the returned records value to variables, but I cannot get more than one value returned. Really frustrating!

Sign in to reply to this post

Ray BorduinWebAssist

In the recordset object it has the number of records passed as a parameter. If you change it from 1 to 0 it will return all results.

Sign in to reply to this post

nmc381879

Thanks Ray, but no cigar...

I tried that and still only one record appears, and there is no option to bind...

<?php
$rs_location_issue_names = new WA_MySQLi_RS("rs_location_issue_names",$iap_sd_i,0);
$rs_location_issue_names->setQuery("SELECT lp_scalenames.Display_label FROM lp_scalenames");
$rs_location_issue_names->execute();
?>

Also note that they (all 30) appear ok using the TEST button.

Sign in to reply to this post

Ray BorduinWebAssist

What do you mean by bind? What are you trying to do at this point? This recordset should be returning all rows and won't add the limit 1 any more.

Sign in to reply to this post

Ray BorduinWebAssist

$rs_location_issue_names->Results will be the full array returned.

Try writing it to the page with var_dump to see the contents:

php:
<?php 

var_dump
($rs_location_issue_names->Results);
?>
Sign in to reply to this post

nmc381879

That helped

OK, I got the dump on the entire array, all 30 records. So I should just address them from their array names and not try to use WebAssist?

Sign in to reply to this post

nmc381879

I hope to bind a selected record to a variable. It will only return one, and when I try to create a repeating region, nothing at all happens. I viewed the tutorial, but the "bind" button is not functional, whereas the "insert" button works. I was hoping for a list of 30 records in an array form. Is that just not possible? I should at least be able to get a "repeating region" shoulnd't I?

Sign in to reply to this post

Ray BorduinWebAssist

Yes, the MySQLi repeat region should work to show all records. What happened when you tried. Can I get a copy of the page you are working on to review?

Sign in to reply to this post

nmc381879

Nothing is working very well

I cannot even get a dialog for repeat region now. Here is the page. If I am way off base, I don't mind paying the fee for special help. I followed the tutorials, but cannot get the same screens. I took lots of junk out to make it simple for you to see.
Thank you for your help.

Neill

Attached Files
data_test_new.php
Sign in to reply to this post

Ray BorduinWebAssist

It looks like your repeat region got placed around a recordset on the top of the page. I'm not sure how that happened. Usually it would be in the HTML and used to display multiple rows. It doesn't make any sense where it is now.

Maybe we can set up a phone call for tomorrow and do screen sharing to figure out what you are trying to do and get it resolved more efficiently. Please post a US phone number or Skype contact information and we can set that up.

Sign in to reply to this post
loading

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