The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
querry for secondary usergroups??
Hello i have been tryin to figure out the proper operator to modify all users in a secondary user group. Which the table row would be
TABLE_PREFIX . 'user where membergroupids = 'is this possible?'; Basicly, i just need a method to check if say #1 is inside of the array stored in membergroupids. Thanks Shawn |
#2
|
|||
|
|||
|
#3
|
|||
|
|||
Quote:
Code:
select * from vb_user where FIND_IN_SET ( '6', membergroupids ) > 0"; PHP Code:
After playing around with it for awhile i found this which works PHP Code:
|
#4
|
|||
|
|||
I hope you are not planning to use that query like this in your final code?
Never use unsanitised variables in a query (like $_POST). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|