If you want to edit and entry *in the database*, then you need to do a query like this (example to set userid to 10 for a user who's username is JoeBlow:
PHP Code:
$db->query_write("
UPDATE TABLE " . TABLE_PREFIX . "user
SET userid=10
WHERE username='JoeBlow'
");
http://www.vbulletin.com/docs/html/c...ards_sql_query
(I would NOT change the userids via a query. If you accidentally set the userid to the same as another user, you can really mess things up!)