in reply to Please provide a hint for me to continue with the rest of my program
One way of creating an implicit date range is to have cron run the script every day at midnight. The difference between yesterday's stats and today's stats is the amount done today.
If you have a monotonically increasing ID on the entries you are counting, then you could also save the highest ID number at midnight each night, so that you know what day each ID was created.
|
|---|