Create a table with the following fields:
affiliate | amount_paid | date_of_payment
Whenever a payment is made, insert a row into that table.
To generate a report, do something like this:
select sum(amount_paid) from the_table where affiliate = 'My Special Affiliate' and date_of_payment >= '2003-12-01' and date_of_payment <= '2003-12-31'