خرید بک لینک

Vote count: 0

I'm putting together a little subscriptions script in PHP which will calculate the expiration date based on todays date and time, but it's giving the result of 0000-00-00 00:00:00 (Datetime)

Here is my code:

$added = date("Y-m-d H:i:s");
$expiry = strtotime('+ 1 year', $added);

How can I get this to give me the result of:

$added  =  2016-07-30 17-18-33
$expiry =  2017-07-30 17-18-33

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 9 مرداد 1395 ساعت: 23:34

صفحه بندی