i have this scheme:
+-------+
|posts: |
+----+--+--------+--------------------+
| ID | title | timestamp |
+----+-----------+--------------------+
| 1 | t1 |2011-04-05 17:54:55 |
+----+-----------+--------------------+
| 2 | t2 |2011-04-06 09:10:11 |
+----+-----------+--------------------+
| 3 | t3 |2011-04-07 02:07:22 |
+----+-----------+--------------------+
How i can get the total of posts for last 7 days grouped like this:
monday: 3
Tuesday: 9
Wednesday: 2