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


MySQLi user authentication on multiple variables

Thread began 1/21/2016 5:51 pm by LionsMane | Last modified 1/21/2016 8:34 pm by Ray Borduin | 224 views | 1 replies |


MySQLi user authentication on multiple variables

I have an event with 5 different things a person can sign up to see. Their registration has been set in the table to show using 5 columns (set to 1) for whatever session they want to see. I need to change the user authentication method so that it checks to see IF any of those columns are set to 1 before it will log them in. User could have just Session1 or possible Session1 and Session3 .. how can we recode it so that the user will get authenticated if ANY of those columns are selected?

Sign in to reply to this post

Ray BorduinWebAssist

You would have to apply the server behavior 5 times since there is no way to group comparisons with OR currently.

Another option might be to save the 5 values in the session after login and then check those session variables on the various pages directly. That way it would let them log in without them set, but they still wouldn't be able to access the restricted content.

Sign in to reply to this post
Did this help? Tips are appreciated...

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