Accessing and updating values in database
I'm attempting to access my vanilla database and inserting/updating values in the database with some hard coded values.
I'm located in class.karmabankmodel, because I want to insert a given value to the db when a user receives karma.
The exact field I want to update is the RoleID field within the gdn_userrole table.
How do I access and update this field with a given value?
Also, I have a variable $UserID. How do I send the given value to the correct user?
Thank you for your interest.