you said in the post that the membersmust have 2 refferals, but in the following if statement there is a syntax error as well as a conditional error...
if(mysql_num_rows(mysql_query('result'>2)
print("Yes");
}
try changing that to
if(mysql_num_rows($result') >= 2) {
print("Yes");
}
AND...
if(mysql_num_rows(mysql_query('result'<2)
print("No");
to...
if(mysql_num_rows($result') < 2) {
print("No");
}
this should fix the problem..... Hope it helps...