query('UPDATE users SET password = \''.hash('sha512', $_POST['newpass1']).'\' WHERE id = '.$b_user['id']) or dash_fatal($db->error); if ($db->affected_rows < 1) dash_fatal('Your password could not be changed.'); } $type = $b_user['type']; if ($_POST['newtype'] == 0) $type = 'EMPLOYEE'; else if ($_POST['newtype'] == 1) $type = 'EMPLOYER'; if ($type != $b_user['type']) { $db->query('UPDATE users SET type = \''.$type.'\' WHERE id = '.$b_user['id']) or dash_fatal($db->error); if ($db->affected_rows < 1) dash_fatal('Your account type could not be changed.'); } dash_fatal('Account settings successfully updated.'); } ?>

Account Settings

Adjusting for

Current Password

Your current password is needed to change your account settings.

Change Password

Change Account Type