$query = $allib->query("UPDATE users SET password='".md5($temp_pass)."', active=1 WHERE Email='".$row['Email']."'");
$email = "My Password new : ".$temp_pass."";
if(mail($row['email'], 'Password your account', $email)) { $msg = 'Password Resettata , verificare nella posta elletronica.'; $msg .="".$temp_pass.""; } else { $error = 'Failed sending email'; } } else { $error = 'There is no member to match your email.'; }