Permanently in the database, or only when the script is processed?
Doing:
PHP Code:
$bbuserinfo['myvar'] = "newval";
will only set the variable for that moment. You can use phpMyAdmin to change the value(s) in the database, or use something like the following:
PHP Code:
$bbuserinfo['myvar'] = "newval";
$DB_site->query("UPDATE user SET 'col_name' = '".$bbuserinfo['myval']."' WHERE userid='".$bbuserinfo['userid']."' LIMIT 1");