I have a date from a MySQL database, stored as type TIMESTAMP.
I would like to compare this to today's date. And output accordingly.
E.g.:
If the date is today's then output: "Today";
if the date is yesterday then output: "Yesterday":
and so on..... up until about 5 days ago.
I would eventually like to go further with "1 hour ago", "3 hours 27 minutes ago".
Any suggestions?