blocking duplicate entries
Hi,
I am trying to stop dulicate entries and I have the following server validation so far but it is blocking all entries. I also do have a recordset that filters based on the two columns I would like to block duplicate entries from.
<?php
if (isset($_POST["Submit"])) {
$WAFV_Redirect = "";
$_SESSION['WAVT_merch_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateNM(($totalRows_rsDuplicates) . "",0,0,"",",.",true,1);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"merch");
}
}
?>