![]() |
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 |
|
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:
|
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). |
All times are GMT. The time now is 03:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|