Codice PHP:
$sql mysql_query("SELECT * FROM tabella_registrati WHERE mail = '$mail' AND password = '$password' ");