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

mysqli server behaviors

Thread began 11/24/2014 5:21 pm by Jedi | Last modified 11/25/2014 3:40 pm by Jason Byrnes | 495 views | 7 replies |

Jedi

mysqli server behaviors

I have tried and cannot get the mysqli login user to work in conjunction with the restrict access
feature. I am using a wampserver and I get the error messages below:
Notice: Undefined variable: Recordset1 in C:\wamp\www\AmericanTechnicalCeramics\index.php
on line 10
Fatal error: Call to a member function getColumnVal() on a non-object in C:\wamp\www\American
TechnicalCeramics\index.php on line 10
Here is what is on the line 10:
$Authenticate->addFilter("Username", "=", "s", "".($Recordset1->getColumnVal("Username")) ."");

Sign in to reply to this post

Jason ByrnesWebAssist

you are using a recordset value in the login behavior.

you should using a form element binding instead of using a recordset binding.


you create a login form with user name and password elements.

then in the login behavior, bind the username column to the user name form element and the password column to the password form element.

Sign in to reply to this post

Jedi

Thanks, that worked

Sign in to reply to this post

Jedi

Hi Jason,
While the login is working now I still have a problem in that I cannot get the last page of the wizard to accept a session variable name to save in session as. I enter information and I get nothing.
I have tried deleting the dreamweaver win cache file and I have deleted the notes folder in the site root.

Sign in to reply to this post

Jedi

How do I store a value as a session variable. Nothing is sticking on this part of the MySqli login user widget

Sign in to reply to this post

Jason ByrnesWebAssist

On the session tab, select the column to save to a session, then type the name of the session in the Save in session as box.

alternately, you can edit the code directly to add a store result argument:

$Authenticate->storeResult("ColumnName", "sessionName");

where column name is the name of the column, and sessionName is the name if the session.

Sign in to reply to this post

Jedi

Thanks Jason. I had to hand code it in. Do you have any idea why I cannot add it in the login panel?

Sign in to reply to this post

Jason ByrnesWebAssist

no, I am not able to reproduce.

What is your OS?

DW Version?

What extensions including the version numbers are installed?

with that infomraation, I can try to reproduce on a similar platform.

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