I've created this query to select the next birthdays
the acoresanos is a date field.
SELECT acoresnick,acoresanos,YEAR(NOW())-YEAR(acoresanos) AS idade FROM acores_users WHERE DAYOFYEAR(acoresanos) >= DAYOFYEAR(now()) ORDER BY DAYOFYEAR(acoresanos) LIMIT 10
But i don't to use limit.. because i may have 20 people making birthdays in the same day.
What i want is to select all the next birthdays for the next 5 days from now!
I've tryed using ...AND DAYOFYEAR(now()) < DAYOFYEAR(now()+5) and other stuff but none of them worked...
Can anybody help ?