validateMembersNum($membershipnumber = odbc_result($result,2),$membersnumber);
this is the call $membersnumber is a var posted in from a form and $membershipnumber is a value retuned from a database.
function validateMembersNum($x,$y)
{
//x and y are the passed parameters
// now i want to check that they are the same and return if they are and die if they are not the same
echo("the first val". trim($x));
echo("<br />");
echo("the second val". trim($y));
$z = strcmp(strtolower($x) , strtolower ($y));
if($z == 1)
{
die("if correct return");
}
else
{
die ("passssssssssss");
}
}//end function
hope this help