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

Unique database value

Thread began 2/22/2014 3:37 am by CraigR | Last modified 2/27/2014 11:36 am by CraigR | 311 views | 3 replies

Jason ByrnesWebAssist

The Unique Database value wont take an empty string.

to work around this, you can force a string if the post is empty.

when you add the unique DB validation and the select the Server variable, the server variable code will look like:

edit that to:
((isset($_POST["elementName"]) && $_POST['elementName'] != "")?$_POST["elementName"]:"NA")

this will check for an empty value and force it to look for "NA" is empty.

the key value option is used in an update scenario.

If the user is logged in, and updating their information, they should still be able to use their existing email address.

in this case, the key value should be set to use the ID session created by the login page. that will look up the record for the logged in user and allow the email address for that record to pass validation, but not any other email address in the database.

in other words, it is used to lookup the exception to the rule.

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