Can anyone help me, i have a string which passes date as (YY-mm-dd) eg. 2012-11-16. I want to get records from my database using PHP to get records for the last 7 days. My database contains unix timestamp in date&time format. How can I get records for the past 7 days from current day using PHP.
Share
This works on a “per day” basis. Use this to be accurate on second basis: