nulla..![]()
Codice PHP:$email = trim($_POST["email"]);
if ($email == "")
{
$errori[1] = "Il campo [b]E-mail[/b] è vuoto";
}
else {
$query = "SELECT email FROM users WHERE email = '$email'";
//$query = "select email from users where username = '".$username."' and email = '".$email."' ";
$result = mysql_query($query, $link) or die("Errore nella query:".mysql_error());
if(mysql_num_rows($result) == 0) {
$errori[1] ="L'email inserita non appartiene ad un utente registrato";
}
}
return $errori;
}

Rispondi quotando