Page 1 of 1
How long ago ?
Posted: Wed Aug 31, 2011 3:05 pm
by niki_noki
Hello all

)
I have any question. How can I pull through php to how long before an item is added. The database also add it
date('d/m/Y H:i:s');
Re: How long ago ?
Posted: Wed Aug 31, 2011 3:42 pm
by twinedev
You may want to try rewording that and giving more information. I am not sure what you are asking.
Re: How long ago ?
Posted: Wed Aug 31, 2011 10:03 pm
by xtiano77
Without your code it is somewhat difficult to answer your questions; however, if what you are trying to accomplish if for a page to show the information of when it was last updated by you (re-writing the code, etc...), JavaScript has a function that does just that:
http://www.w3schools.com/jsref/prop_doc ... dified.asp
You could also try adding a field to the database and use the SQL "FORMAT( )" and "NOW( )" function[s] in order to save the date format you want and later display it on your page.
http://www.w3schools.com/sql/sql_func_format.asp
Hope this helps!