tdsmithj
02-08-2008, 05:29 PM
I am doing a registry system where you have to register and pay within 2 months before action is taken. I am trying to create an SQL query to sort out registered users who have yet to pay in a specific time.
i come to a solution where you have to...
select * from members where PaidStatus = 'new' && CURDATE() > DateReg + 2 months;
but iam unsure how to calculate the 2months, i thought maybe a uni time which is around 5000000 but does not work. any suggestions.
i am using mySQL5
i come to a solution where you have to...
select * from members where PaidStatus = 'new' && CURDATE() > DateReg + 2 months;
but iam unsure how to calculate the 2months, i thought maybe a uni time which is around 5000000 but does not work. any suggestions.
i am using mySQL5