I am trying to show the number of days and hours left before a record expires
using php and mysql.
In my table the record was created with a Date field called create_date.
So when extracted I have $create_date.
The record is not displayed after becomming two weeks old.
When a client looks at his record i want to show how much time is left, in days and hours.
Something like :
$time_left = strtotime( "2 weeks") - ($today-$create_date) ;
but this doesn't work.
When echo $time_left I want it to say something like "3 days 5 hours"
Please help !
Thanks.