
Originally Posted by
rbb138
lol, thats my site xD



ok now i got working.. with command
pear install DB
---------- Post added at 11:58 AM ---------- Previous post was at 10:34 AM ----------
ok. now i confused add email check. but this like Q & A, help. 
---------- Post added at 12:41 PM ---------- Previous post was at 11:58 AM ----------
i add this
PHP Code:
$GetAccountInfo = Mysql_Query("SELECT * FROM users WHERE name = '$UserName'");
$GetAccountNum = Mysql_Num_Rows($GetAccountInfo);
IF ($GetAccountNum == 1) {
$GetAccountArray = Mysql_Fetch_Array($GetAccountInfo);
$GetPassword = $GetAccountArray['passwd'];
$GetEmail = $GetAccountArray['email'];
$GetPassword = addslashes($GetPassword);
$GetEmail = addslashes($GetEmail);
$rs = mysql_query("SELECT fn_varbintohexsubstring (1,'$GetPassword',1,0) AS result");
$rs2 = mysql_query("SELECT fn_varbintohexsubstring (1,'$GetEmail',1,0) AS result2");
$GetResult = Mysql_Fetch_Array($rs);
$GetResultEmail = Mysql_Fetch_Array($rs2);
$CheckPassword = $GetResult['result'];
$CheckEmail = $GetResultEmail['result2'];
IF ($Myemail == $CheckEmail) {
IF ($EncryptOldPassword == $CheckPassword) {
Mysql_Query("CALL changePasswd ($GetAccountInfo->quoteSmart'$UserName', $EncryptNewPassword)");
Mysql_Query("CALL changePasswd2 ($GetAccountInfo->quoteSmart'$UserName', $EncryptNewPassword)");
echo "<font color=green>Password for Account: <font color=red>$UserName</font> has been changed to: <font color=red>$NewPassword</font></font><br>";
}
ELSE {
echo "<font color=red>Account Information is Incorrect! </font><br><a href='index.php'>Go Back to Form</a><br><br>";
}
}
ELSE {
echo "<font color=red>Email is Incorrect! </font><br><a href='index.php'>Go Back to Form</a><br><br>";
}
}
but not work always saying incorect email