I have a table having two fields start_date and end_date. I need to display the data in this format
4 days 12 hours remaining.
id start_date end_date
1 2012-12-07 12:00:00 2012-12-14 12:00:00
How can i achieve this. Using now() of mysql to find remaing days and hours. I mean today is 2012-12-10 so i need to find how much difference from today to the end date.
This might help you:
In the nested query you get the difference (in hours)