.... if (tep_validate_password($password_current, $check_customer['customers_password'])) { tep_db_query("update " . TABLE_CUSTOMERS . " set customers_password = '" . tep_encrypt_password($password_new) . "' where customers_id = '" . (int)$customer_id . "'"); ....