The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I'm trying to update Thread Subscriptions so nobody that registered with an e-mail address from domainxyz.com gets e-mail updates.
Something like: Code:
UPDATE " . TABLE_PREFIX . "subscribethread SET emailupdate = 0 WHERE (emailupdate > 0) AND ????????? ![]() I'm looking to compare it like this: Code:
AND (email LIKE "%domainxyz.com") Any help would be appreciated. Thanks, James |
|
#2
|
|||
|
|||
|
This should work:
Code:
"UPDATE " . TABLE_PREFIX . "subscribethread as subscribethread LEFT JOIN " . TABLE_PREFIX . "user as user ON(subscribethread.userid=user.userid) SET emailupdate = 0 WHERE (emailupdate > 0) AND email LIKE '%domainxyz.com' " |
| 2 благодарности(ей) от: | ||
| RichieBoy67, TheLastSuperman | ||
|
#3
|
|||
|
|||
|
That works great.
Thank you very much! |
![]() |
|
|