Hi,
I wont prevent to insert in the table "utenti_registrati" the field nome,email,cap. the code is:
[codebox]function BeforeAdd(&$values)
{
global $conn;
$strSQLExists = "select * from utenti_registrati where nome='".$values["nome"]."' and email='".$values["email"]."' and cap='".$values["cap"]."'";
$rsExists = db_query($strSQLExists,$conn);
$data=db_fetch_array($rsExists);
if($data)
{
echo "Duplicate Entries, Try Again";
return false;
}
else
{
return true;
}
}[/codebox]
but not prevent nome and cap, but only email.........why.
Where is my error
Best regards