forgive my terminology - i'm trying to create a simple notify function in an invoice script to let me know when a particular date is approaching. i can time stamp the invoice entry but i want to be notified of its expiration date (of course)...
anybody understand what the heck i'm talking about?
thanks,
glenn
script to notify of approaching date / timestamp
Moderator: General Moderators
Code: Select all
$now_timestamp = mktime();
$warning_seconds = 86400; // 1 day
$timestamp_expire = $db_expire; // timesamp from db?
if(($now_timestamp + $warning_seconds) >= $timestamp_expire){
// the timestamp is about to expire
}