hi,
i'm using this code:
// Parameters:
// $values - Array object.
// Each field on the Add form represented as 'Field name'-'Field value' pair
//** Check if specific record exists ****
global $conn;
$pass_var = $values["Password"];
$strSQLExists = "select * from `_Users` where ((Password=".$pass_var."))";
$rsExists = db_query($strSQLExists,$conn);
$data=db_fetch_array($rsExists);
if($data)
{
// if record exists do something
echo "Change Password";
}
else
{
// if dont exist do something else
}
return true;
// return true if you like to proceed with adding new record
// return false in other case
if the password exists we can see the text but the record is added too,
what i have to do to don´t add the record to the table if the password exists
thanks a lot