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


Variable set thru Recordset

Thread began 7/01/2011 6:10 am by madelectrical386948 | Last modified 7/01/2011 10:09 am by Jason Byrnes | 638 views | 1 replies |


Variable set thru Recordset

HI Jason and Webassist.

I have been working on a recordset thru a different thread with Jenny I. I can get the recordset to work in phpmyadmin, but when I apply the same recordset to DM, I get an Undefined Index, which I believe is the variable is not being set correctly or at all.

Here is the recordset. I can run the recordset in DM and nothing will populate in the Options1.OptionName thru Options4.OptionName. Once I change the bindings, this is the fault. The changed bindings are below the recordset.

Any Ideas?

Mike D

SELECT CompanyOptions.CoOptionsID, CompanyOptions.CompanyID, CompanyOptions.Op1, CompanyOptions.Op2, CompanyOptions.Op3, CompanyOptions.Op4, CompanyIndex.CoName, Options1.OptionName, Options2.OptionName, Options3.OptionName, Options4.OptionName
FROM CompanyOptions
LEFT JOIN Options AS Options1 ON CompanyOptions.Op1 = Options1.OptionsID
LEFT JOIN Options AS Options2 ON CompanyOptions.Op2 = Options2.OptionsID
LEFT JOIN Options AS Options3 ON CompanyOptions.Op3 = Options3.OptionsID
LEFT JOIN Options AS Options4 ON CompanyOptions.Op4 = Options4.OptionsID
LEFT JOIN CompanyIndex ON CompanyOptions.CompanyID = CompanyIndex.CompanyID

<td><?php echo $row_rsOptions['CoName']; ?></td>
<td><?php echo $row_rsOptions['Options1.OptionName']; ?></td>
<td><?php echo $row_rsOptions['Options2.OptionName']; ?></td>
<td><?php echo $row_rsOptions['Options3.OptionName']; ?></td>
<td><?php echo $row_rsOptions['Options4.OptionName']; ?></td>

Sign in to reply to this post

Jason ByrnesWebAssist

the recordset looks OK to me, I would need a dump of your tables and a copy of your page to reproduce the issue locally and troubleshoot.

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





Ease of use


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