Quote:
Originally Posted by alirex
Thank you , it works without problem. Its really helpfull query specially when alot of spammer need to be remove. From admincp it was easy if number of members are less. But now its good.
Thanks once again.
|
No problem at all, and like ForceHSS said this is not recommended to use if you have a forum with users that have posts, but a simple change to the query could prevent problems of that nature:
Code:
DELETE FROM user WHERE lastactivity < '1371445200' AND posts = '0'
Now it is only deleting users that have 0 posts and the last activity was before the timestamp.