eMoneySpace
Welcome, Guest. Please login or register.
Did you miss your activation email?
News: Welcome to eMoneySpace! Aug 14, 2022 12:30 am




How to delete inactive members automatically?
Print
Author Topic: How to delete inactive members automatically?  (Read 760 times)
coolrajat
Reputation: (+16)
*

Offline

Gender: Male
Posts: 1800
Referrals: 2


View Profile WWW
Jan 04, 2011 11:49 am

Hi frens i want to know How can i delete inactive members automatically after 60 days from my Aurora SDR 1.1 B site?
Logged

Assault
Reputation: (+14)
*

Offline

Posts: 812
Referrals: 0

The Revolution will not be televised.

View Profile
Reply #1: Jan 05, 2011 07:10 pm

Need to add it to cron.php

Code:
$sql=$Db1->query("DELETE FROM user WHERE last_act>='".(time()-7776000)."'");

That would be an example of deleting users who have been inactive for 90 days or more
Logged
Print
 
Jump to:  
Copyright © 2008-2022 eMoneySpace. All rights reserved.