deleting time help..

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    deleting time help..

    if i would to see and delete users that don't login from 6 months
    how i have to change this:



    $time_limit = 32*1*12*30*30;
    sigpicthe italian/international COMMUNITY of friendship
    http://people2000.netne.net
    WAP/WEB
    peoplemailbox@katamail.com

    #2
    Maybe this will help.

    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

    Hope it will help.

    Comment

    Working...
    X