The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Help?
Too tired, can't think
Code:
update user set membergroupids=concat_ws(',', 'A', membergroupids) WHERE userid = 'X' |
#2
|
|||
|
|||
I don't think you can do that in a query, you'd have to pull the info out, parse it in php and then update.
|
#3
|
||||
|
||||
If you can explain what you're trying to do maybe we can help a little easier
|
#4
|
||||
|
||||
Ah ok Dean, basically i've made/making a membergroupid leaders and i want the leader to beable to add/remove members from there squad. But i can't work out how to remove a user from membergroupid's.
Im just wondering if there is a mysql query to remove a number from the membergroupid column. |
#5
|
||||
|
||||
Ok after looking into it there's really no easy way of doing it with MySQL. What i'd suggest doing is rebuilding the list using PHP. Explode the commas, find the usergroupid in the array, remove it, rebuild array using implode and then updated.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|