Hello.
This is the current code:
$table = 'core_members';
$query = \IPS\Db::i()->select('*', $table, 'name=' . "'$username'")->query;
$result = \IPS\Db::i()->query($query)->fetch_assoc();
and then i can use
$id = $result["member_id"]; // member id
to get the member id of the username i entered.
However, how do i change the member id?
I can get the member id by using the code above of the user i want, but i want to be able to change it. Please help with that.
To clarify, i can get the values i want, but i want to be able to change them as well.