Elixir Posted April 3, 2008 Share Posted April 3, 2008 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 } } Link to comment https://forums.phpfreaks.com/topic/99417-new-to-php-need-help-with-date-classes-within-a-timeframe/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.