Ok, here is what I really need to do.
I need to run a report on my database to show sales for the past 7 days, broken down by day.
So for example, I would want to show:
monday, tuesday, wed. etc.
And display how many sales each day had.
So I'm trying to build mysql queries to only show sales for a specific day.
I've looked through all of the mysql date functions and can't seem to figure this out.
I can only do mysql queries because I am using some "php builder" software the client used to build their application to begin with. So I can't add any additonal php to this.
Is there any way I can accomplish this. I guess it would look something like this:
SELECT
COUNT(*) AS MONDAY
FROM
users
WHERE
(start_time = "LAST_MONDAY")
But of course start_time is stored as a unix timestamp. So how can I use the mysql date/time to get these 7 queries to work?