Jump to content

Short advice.


xyn

Recommended Posts

Hi.
Would someone be able to give me some advice on the easiest and
most effective way of going about checking account activations.
Basically when they register it will register the time and date, I wanted
to check if the account has been activated with in 15 days,

If it has obviosuly the time and date will become the "last login" otherwise
it would stay the registered date & time. Clearly this way would work using
MYSQL, but I have no idea how to go about it.

If the acocunt has not been activated within 15 days I wanted it to be
deleted automatically.
Link to comment
Share on other sites

[quote author=xyn link=topic=103417.msg411733#msg411733 date=1155045459]
Hi.
Would someone be able to give me some advice on the easiest and
most effective way of going about checking account activations.
Basically when they register it will register the time and date, I wanted
to check if the account has been activated with in 15 days,

If it has obviosuly the time and date will become the "last login" otherwise
it would stay the registered date & time. Clearly this way would work using
MYSQL, but I have no idea how to go about it.

If the acocunt has not been activated within 15 days I wanted it to be
deleted automatically.
[/quote]

how is the date recorded? is it a datetime field, or set by time()
Link to comment
Share on other sites

some thing like this...

[code]
$borderdate = mktime(0, 0, 0, date("m"), date("d")-15 ,  date("Y"));  //15 days ago

mysql_query("DELETE FROM <table> WHERE `signup_date` =< '$borderdate');
[/code]

BUT... im only guessing, try running the same ish query but as a select, so see if it picks up the right members
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.