PDA

View Full Version : Query question


EagleNick
10-05-2008, 10:19 PM
I am looking to change the subscription method of all threads for a single user.
In other words, change their subscriptions from "Instant E-mail Notification" to "No E-mail Notification".

Would this query do the trick?
UPDATE user SET autosubscribe = 0; WHERE userid = 'X';And if that is a working query, I'm assuming it could also be used for a usergroup:
UPDATE user SET autosubscribe = 0; WHERE usergroupid = 'X';

Dismounted
10-06-2008, 05:55 AM
You do not put the semi-colon after "autosubscribe".
UPDATE " . TABLE_PREFIX . "user SET autosubscribe = 0 WHERE userid = X

Marco van Herwaarden
10-06-2008, 09:09 AM
No need to run a query, you can set his option when editing the user in the AdminCP.