خرید بک لینک

Vote count: 0

Alright, posted this last night and didn't get a straight answer so hopefully i'll get one today:

I've got this code here $date1 = new DateTime('NOW'); $date2 = new DateTime($sinfor['lastMine']); //* Difference for enabling the mine button $diff = $date1->diff($date2); $min = abs(5-($diff->i)); echo $min;

Which I want to use as a count down timer; however I'm having two different issues either A ) it shows the proper time but the seconds count up (It still works, just displays wrong) or B ) Every time is 55 minutes away.

the variable 'lastMine' is a mysql generated datetime stamp.

asked 19 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 2 تير 1395 ساعت: 0:17

صفحه بندی