hi
//** Check if specific record exists ****
global $conn;
$strSQLExists = "select * from data where Name='".$values["Name"]."' and Email='".$values["Email"]."' and Magazine='".$values["Magazine"]."'";
$rsExists = db_query($strSQLExists,$conn);
$data=db_fetch_array($rsExists);
if($data)
{
//echo "Duplicate Entries, Try Again";
$result['msg'] = "Record already exists";
return false;
}
else
{
return true;}
may i know where shd i place this code => alert(result['msg']);
please advise with thanks