mysql timestamp manipulation


Posted on 16th Feb 2014 07:03 pm by admin

How could I use a timestamp (e.g 2009-10-30 13:20:35 ), and with php find out if it is:

from today
from this week
from this month
from the last 3 months
from the last 6 months
from this year
from 1 year ago
etc etc

?

Thanks

No comments posted yet

Your Answer:

Login to answer
216 Like 11 Dislike
Previous forums Next forums
Other forums

text box alphanumeric caracters only
hi all!

I have search on google on how to enter in a test box only caracters A-Z,a-z,0-9 usi

void* and sizeof()
Hi,

Using void* and sizeof is it possible to get the value of the object ?

I understan

How to replace search button with link?
hi to everbody.
i have a search submit form and button like this :

<form id="f

using file_get_contents??
okay how would i create a script using file_get_contents() in php have it grab search pages 1-20 and

Images in email problem
I found this script for sending emails, it works but if the email has <img src="image.jp

How do I create a 2D game "camera" to follow player?
In J2ME programming I'm targeting MIDP 2.0 devices.

I'm using gamecanvas and I was thinking t

PHP Upload issue
Hi guys,

I have stumble across an interesting issue with my script and is doing my head in.

Post, not working, please help
The error is:
Method Not Allowed
The requested method POST is not allowed for the URL /student

ok i need to join all this pages to make 1 neat code
i have 5 pages that make up my tv guide it works 100% but i want to make it 1 page if i can or 2, i

Images outside webroot
Im hopeing someone can help me with this because i cant figure it out.I have setup an ASP.NET websit

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash