I need to convert mySQL timestamp to datetime, add 5 minutes to time and subtract new time from old, give minutes and seconds left.
The mySQL timestamp looks like this,
so I'd like to do
2012-04-05 06:53:48 - 2012-04-05 06:48:48 then output 5 minutes 0 seconds left and so on as the time counts down. I have tried all sorts of different variations without success. I'm using PHP Version 5.3.3. Any help will be much appreciated.