0) {
errorc(‘Your password could not be changed. Please contact us.’);
}
//Encrypt $password for database
$password= $_POST[‘password’];
if ($password==”) {
error(‘Password cannot be blank.’);
}
$bcrypt = new Bcrypt(15);
$newpassword = $bcrypt->hash($password);
// Make a safe query
$query = sprintf(“UPDATE `userdata` SET `password` = ‘%s’
WHERE `E-mail` = ‘$email'”,
mysql_real_escape_string($newpassword));
mysql_query($query)or die(‘Could not update members: ‘ . mysql_error());
errorb(‘Your password has been changed.’);
}
else {
?>