Hi everyone
I have previously read PHP Eleven - Date and Time Functions in PHP to look for the following issue I am having, but did not find anything.
The suggested the main site
here, but still no luck.
I am currently running a site witch displays the tome like this: 2013-03-19 17:02:43
I would like to display it like this - one day one 1 minute ago, 6 minutes ago, 3 hours ago, 2 days ago, 3 weeks ago, 1 month ago, 2 months ago, etc. (similar to Twitter)
Here is my PHP code displayed in a table:
Language: PHP
echo "<td bgcolor=\"7D7978\" class=';table7';>" . $row[';time';] . "</td>";
and here is my MySQL entry:
Language: SQL
`time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,