You can easily extract events from mysql without using PHP.
example:
SELECT *
FROM `table`
WHERE
TO_DAYS(concat( startyear,'-',startmonth,'-', startday )) > TO_DAYS('2004-01-01')
AND
TO_DAYS(concat( startyear,'-',startmonth,'-', startday )) < TO_DAYS('2004-02-01')
That would extract this months events..