return $error;
}
- if ($login_id = 0) {
+ if ($login_id == 0) {
$set=$db->query("select * from users where login='$login'");
} else {
- $set=$db->query("select * from users where user_id='$login'");
+ $set=$db->query("select * from users where user_id='$login_id'");
}
$set->next();
if ($login == '') {
$error="Please enter name or id";
+ print "$error";
return false;
}
if ($password1 == '' || $password2 == '') {
$error="Please enter password";
+ print "$error";
return false;
}
if ($password1 != $password2) {
$error = "The two passwords that you entered do not match.";
+ print "$error";
return false;
}