Hi Friends ....
i have a subscription method on my site ... subscription for three months . now i have to show the days remaining on the page of user .. i have date activated of user & date valid for the subscription in the database .. now to show the days remaining on the page of user what i should i adapt is there is any function in PHP which calculates the days according to the two dates by substraction operation over them .... ???
please help me if anybody can ...
Thanks
waiting for reply ..
how to calculate the days according to date.. ?
Moderator: General Moderators
That may help you:
http://lwest.free.fr/doc/php/lib/date-en.html#sec_37
Or you may use strtotime() function.
http://lwest.free.fr/doc/php/lib/date-en.html#sec_37
Or you may use strtotime() function.
how to calculates the day
Hi
sorry these functions are not working in PHP...
do you have any other idea.. ?
sorry these functions are not working in PHP...
do you have any other idea.. ?
how to calculate the days
The format is date......
Code: Select all
$daysLeft = round( (strtotime($end_date) - time() )/(60*60*24));how to calculate days remaining
Hello friend..
it is working now .. thank you very much
it is working now .. thank you very much