Jump to content

New to PHP Need Help with Date Classes Within A Timeframe


Elixir

Recommended Posts

Ok So What I Have here is a scaled down version of What Im trying to do...

 

What I need done is when a user is deleted from the database an event occurs. The Client Is Contacted, But only if the client is a trial client which only exists for 7 days. He then has a 1 day window in which he is contacted when this expires (Only on the 8th Day). There are other clients not in this 7 day window who will not be contacted who own 1 year subscriptions. I do not wish to change the database

 

what I have is clientcreationdate as a DateTime.

 

So what I really need to check is if the the client is past the 7th day but not into the 9th day of his deactivation and then perform my details.

 

Any Help would be appreciated :)

 

checks active users

{

 

if(//ValidUser)

{

                  //Performs Logic

}

else()

{

//Deletes the User From the Database

set user active = 0;

 

            //Check if its the 8th day of the clients trial after deactivation.

            //Perform Solution in Here

}

 

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.