![]() |
email query
I am able to do a query to delete users with a certain address but what I want to do is just remove the email address so they do not bounce. This is simple but I would like to do a few other things as well to clear out my user email addresses that are not active.
#1 - Remove certain address from users but keep users. For example remove all email addresses that contain .xmail.com #2 - Take those users with that address and move them to a different usegroup. I have something like this PHP Code:
Thanks my Vbulletin family!:D |
PHP Code:
|
Just a note to say you should always test queries on a test site first and before doing so on the live site make sure to make a database backup.
|
Quote:
Thanks for the reply my friend! --------------- Added [DATE]1418235303[/DATE] at [TIME]1418235303[/TIME] --------------- Quote:
|
You want to remove the address as in setting the email column to an empty value? Or do you want to remove a specific part of the email address?
|
The entire address. I do not want to lose those members but I do not want those addresses to receive any type of email so I just want to remove the entire address from the user accounts.
Thanks dave |
It's a matter of changing the email column to an empty string:
PHP Code:
|
Quote:
after you have changed usergroupid try this UPDATE `user` SET `email`='' WHERE `usergroupid`= x |
Quote:
--------------- Added 10 Dec 2014 at 14:12 --------------- Quote:
Thanks guys!! |
Happy to help
|
All times are GMT. The time now is 02:55 AM. |
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:
|