Previous Thread
Next Thread
Print Thread
Hop To
#39592 02/07/2004 8:43 PM
Joined: Jun 2006
Posts: 167
member
member
Joined: Jun 2006
Posts: 167
I would like double verification from the top Dogs on here that the following IS the correct SQL command to delete all members who have not logged in since they registered.

DELETE FROM w3t_Users WHERE `U_Laston` = `U_Registered`

Thank you

Musky



How's all this "hopie-changie" working out for you???
#39593 02/07/2004 10:02 PM
Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
That looks correct and should delete users who have never logged in.

Usual warnings apply - backup your database first. <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
#39594 02/08/2004 12:05 AM
Joined: Jan 2004
Posts: 31
L
newbie
newbie
L Offline
Joined: Jan 2004
Posts: 31
Will that axe users who just registered today? is there any way to set a time - say so it gets those who registered a month ago on back to board start date?

#39595 02/11/2004 8:19 PM
Joined: Jan 2004
Posts: 74
G
journeyman
journeyman
G Offline
Joined: Jan 2004
Posts: 74
It will only axe users that have registered right that second. Once they register, and go to another page, the U_Laston value is updated, as it records time in seconds.


Visit the real Threadsdev at http://www.threadsdev.net
#39596 02/12/2004 12:26 PM
Joined: Jun 2006
Posts: 167
member
member
Joined: Jun 2006
Posts: 167
I tried that command and it DID only delete one person.

Not the over 100 that I know I have on board.

Is there another command?

#39597 02/12/2004 10:56 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If you ran that query from the sql command box in .threads it would only report 1 row affected even though it would have deleted multiple rows. Bug in the current releases that don't actually tell you the total # of rows affected, it always says 1.

#39598 02/14/2004 10:07 AM
Joined: Jun 2006
Posts: 167
member
member
Joined: Jun 2006
Posts: 167
Thank you Rick.
I did get the message "One Row deleted..."
But after I read your response I checked the number of members and it dropped by about 200.

Thank you

Musky



How's all this "hopie-changie" working out for you???

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
1 members (Ruben), 1,277 guests, and 207 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)