If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
If its how to delete users who haven't logged in from past 6 months here is how its done
1. convert 6 months into seconds 6*30*24*60*60 and save it in some variable say $delete_time
2. Get the last login time of the user from the database into some variable say $lastlogin
now use if condition to check for each and every user using some loop IF($current_time - $lastlogin > $delete_time ) then delete user ELSE don't
Comment