I'm about ready to launch my site but I need a simple script (Simple to PHP programmers) to let members change their profile settings, display name, email and password. There is no profile page so I'm going to put this in popup form in thickbox. Any help would be greatly appreciated.

$db_settings = array();
$db_settings['host'] = 'localhost';// mysql database host
$db_settings['user'] = 'mysql_database_username';// mysql database username
$db_settings['password'] = 'database_password'; // mysql database password
$db_settings['name'] = 'database_name';// mysql database name

Users table
user_id
Members can edit:
name
pass (not incripted)
email

New display name (name)

Old Password
New Password
Re-type New Password