|
-
November 11th, 2011, 05:12 AM
#1
[RESOLVED] php mysql generating list of having birthday next x days
I try to make a list of people that are having their birthdays for a certain period of time.
I have the birthdate in a datefield in mysql, how can I get a resultset of people that will have birthday today and the next 6 days (or 7 or 8 etc) AND order them by date and not birthdate.
I know it can be done by using a lot of code, but I guess it could be done in 1 or 2 lines of code.
It has to work also if I want a list for the next 7 days when its 30 december or so, so ordering by just dateparts would not work in that case
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|