I am working with PHP and MySQL to develop a web app. Users can do activities in it, and the activities are logged into a database with the date and the user who did the activity. I need a query that finds all of the activities done by a given user in the last week (the date column is a unix timestamp).
Share
This is the query you need.
replace tableName and TimeColumn with the real names