Jump to content

Count Days


Cooper94

Recommended Posts

I have it were when the user sign's up the date is also recorded in a database. How would I make it so that the system checks everyday or a script checks everyday if the userer has filled a "pirep" before 14 days. Say the user joins the 10th and he didnt press send on a form of some sort and it has been 14 days since he joined. How would I make it so it would email that person if he did press send on that form?*NOTE* I know I have been asking many questions over the course of the month and cant give anything back to the community. I am still new at this and I thank you so much!

Link to comment
https://forums.phpfreaks.com/topic/139014-count-days/
Share on other sites

Ok I have this

$currenttime = time(); 
$newtime = $signup_date; 

$timedifference = $newtime - $currenttime; 

$temptime = floor($timedifference/86400); 

But this just gives me -14245. I am trying to make it subtract the signup_date to the current date of today. I think this is correct any help would be great!

Link to comment
https://forums.phpfreaks.com/topic/139014-count-days/#findComment-727234
Share on other sites

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.