zoliky
07-06-06, 05:29 AM
I have a PHP script to add users in database.
Every user has an activation code. A random generated sha1 hash.
This is my table:
--------------------------------------------------------------------
user_id | username | password | email | activate
1 zoliky somepass an_email hsdjf7345h3476hgdjf6g7d
2 user2 somepass an_email hjghjdfhgjdfhgjdfhjghdfjhg
Every user receive an e-mail to activate the account.
When user "zoliky" activate the account the table is modified:
--------------------------------------------------------------------
user_id | username | password | email | activate
1 zoliky somepass an_email 0
2 user2 somepass an_email hjghjdfhgjdfhgjdfhjghdfjhg
I want to delete user which not activate the account for 30 days.
Any idea, what need to do ?
I need a little example code.
Thanks !
Every user has an activation code. A random generated sha1 hash.
This is my table:
--------------------------------------------------------------------
user_id | username | password | email | activate
1 zoliky somepass an_email hsdjf7345h3476hgdjf6g7d
2 user2 somepass an_email hjghjdfhgjdfhgjdfhjghdfjhg
Every user receive an e-mail to activate the account.
When user "zoliky" activate the account the table is modified:
--------------------------------------------------------------------
user_id | username | password | email | activate
1 zoliky somepass an_email 0
2 user2 somepass an_email hjghjdfhgjdfhgjdfhjghdfjhg
I want to delete user which not activate the account for 30 days.
Any idea, what need to do ?
I need a little example code.
Thanks !