Previous Thread
Next Thread
Print Thread
Rate Thread
SQL to delete all of one user's messages?
#283548 02/13/2005 2:49 PM
Joined: Jun 2002
Posts: 670
donJulio Offline OP
Code Monkey
OP Offline
Code Monkey
Joined: Jun 2002
Posts: 670
My board got spammed by one person offering to sell illegally copies Spanish soap operas. I wasn't so bother that it's ethically wrong, but they posted the identical topic in 24 different forums.

Is there an SQL commaned to remove all these messages from the database w/o me deleting them one at a time? Their user id is 7587.

Sponsored Links
Re: SQL to delete all of one user's messages?
luan #283549 02/13/2005 2:50 PM
Joined: Nov 2001
Posts: 10,369
JoshPet Offline
I type Like navaho
Offline
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You mean posts or private messages? You can prune topics by user id in 6.5. I wouldn't recommend a direct MySQL query for posts as the forum counts will all be off and it could screw up your pagination.

Re: SQL to delete all of one user's messages?
Daine #283550 02/13/2005 7:25 PM
Joined: Jun 2002
Posts: 670
donJulio Offline OP
Code Monkey
OP Offline
Code Monkey
Joined: Jun 2002
Posts: 670
I had no idea you could do that, Josh! I've already taken care of it! Thanks!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,529
Posts293,721
Members13,834
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 143
Topics Created 0
Posts Made 1
Users Online 2
Birthdays 17
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,795
Greg Hard 4,625
Top Posters(30 Days)
isaac 3
Top Likes Received
isaac 33
Gizmo 8
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 3
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200217.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.040s Queries: 21 (0.015s) Memory: 3.2426 MB (Peak: 3.6253 MB) Data Comp: Zlib Server Time: 2020-02-17 22:38:04 UTC
Valid HTML 5 and Valid CSS