I have any question. How can I pull through php to how long before an item is added. The database also add itdate('d/m/Y H:i:s');
How long ago ?
Moderator: General Moderators
How long ago ?
Hello all
)
I have any question. How can I pull through php to how long before an item is added. The database also add itdate('d/m/Y H:i:s');
I have any question. How can I pull through php to how long before an item is added. The database also add itdate('d/m/Y H:i:s');
Re: How long ago ?
You may want to try rewording that and giving more information. I am not sure what you are asking.
Re: How long ago ?
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!
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!