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

Referential Integrity and DataAssist Insert

Thread began 9/24/2009 6:20 am by jenkolaka19379118 | Last modified 9/28/2009 5:16 pm by jenkolaka19379118 | 2477 views | 6 replies

Eric Mittman

Checking for the duplicate record is not a feature that can be applied in the scenario you are discussing. This feature is part of Security Assist but just for the user registration.

To craft this yourself you would create a new recordset that looks at the columns in your staff table. In the filter portion you would need to specify the person_id = form value, then enter the name of your input that has the person id. This is the same field you would specify in the insert for the person_id.

You would then just put in your insert server behavior like normal. Once it is on the page you can just put an if statement around it that checks to see if there are any rows in this recordset to check for duplicates. If there are not any records in it then there are no duplicates and you can continue with the insert like normal. The if statement would look something like this:

<?php if (!($totalRows_rsDuplicates >= 1)){?>

your insert server behavior here
<?php } else { ?>
header("Location: " . $your_redirect_page);
<?php ?>

In here if there is not any rows in the recordset the insert will occur like normal. If there are records in the recordset then you will be redirect to whatever page you specify in the header call. This is just a start of what it would look like for you, the specifics will probably be different for you but the structure and idea are the same. Getting this implemented will require some custom coding as it is not a supported feature of the tools.

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