en mi archivo php tengo esta validación:
Código PHP:
alguna idea? Ver original
$sql="SELECT * FROM person WHERE sso=".$_GET['sso']; if($result){ //echo "An user with that SSO already exist.<br/>Please verify your information."; echo "1"; return; } else{ $sql="SELECT * FROM person WHERE name='".$_GET['name']."' AND last='".$_GET['last']; if($result){ echo "2"; //echo "An user with that name already exist.<br/>Please verify your information"; return; } }