The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
In my user table I have an added field called "donator". When the value equals 1 they are a donator (installed the basic donation hack). I now want to put these people in there own user group witch will be user group 12.
What would the mySQL quire be to alter the user group to 12 for all users that have a 1 in the donator field? I know it would start with something like: ALTER TABLE user WHERE donator=1 ......or somthing ![]() Thank you in advance for your help. |
#2
|
||||
|
||||
![]()
[sql]UPDATE user SET usergroupid=12 WHERE donator=1 and usergroupid=2[/sql]
that will move all donating users from registred into 12 |
#3
|
||||
|
||||
![]()
Thank you very much Xenon!
![]() |
#4
|
||||
|
||||
![]()
you're welcome
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|