Welcome Guest, Not a member yet? Register   Sign In
Post is X days old with Pagination
#2

[eluser]Alex C.[/eluser]
What's about buildig the difference between time() and the timestamp of the database entry ?

If it(the difference) is between 0 and 60 you take "x" seconds, if it's bigger or equal 60 AND it is less than 3600 (1 hour) you take "x" minutes , and so on ..

So you are building a string in the foreach loop and echo this one.


Messages In This Thread
Post is X days old with Pagination - by El Forum - 02-10-2010, 10:13 AM
Post is X days old with Pagination - by El Forum - 02-10-2010, 01:18 PM
Post is X days old with Pagination - by El Forum - 02-10-2010, 01:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB