Posts Tagged ‘Subtract’

How Do I Subtract 5 Days From A Stored Date To Return The Date 5 Days Ago Into A Variable In Php.?

February 26th, 2010

What I am doing is when a user submits a page to my database (mySQL) it stores the day it was submitted. I want to be able to output to a specific page all submissions within 5 days time.
Of course it will change the output daily by dropping the 5th day and picking up the current day.