I am recieving a date formatted like this, "DEC-10-01" First, I need to insert it into mySQL then I need to be able to compare those dates and know when a month rolls over.
I have not really look into the date inserting, but I dont think that iwll be a problem. What I was hoping was set some sort of flag to 'no' then use a select statement like
select *
from table
order by date;
convert the results to an array, then do something like
last_month = " ";
beginning_of_month = "no";
foreach(record)
if(current_month != last month)
Set the flag to yes
This way I would know when the first record of each month is, and I could do some special processing to it. Any help appriciated
Zack