I just wish to have a table to store a number of events by day.
Given a table:
create table totals ( entryday date, total int(11) default 0 n
For MySQL 5.0+, see INSERT ON DUPLICATE KEY UPDATE.
INSERT INTO totals (entryday, total) VALUES ("08-01-11", 1) ON DUPLICATE KEY UPDATE total=total+1;