deleting time help..

Started on the old forum in September 2009 · view the original in the archive · old links redirect here

1 reply · 397 views · started 17 years ago · 1 min read

2 participants
xws.developer Junior · 10 posts #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 630246060 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.

Try not to become a man of success but rather to become a man of value. Co-Developer of http://chatmasti.mobi

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close