You are here: Re: Birthdays « PHP Programming Language « IT news, forums, messages
Re: Birthdays

Posted by Toby A Inkster on 06/23/07 22:44

Bo Wisén wrote:

> In a MYSQL database I have stored when the members were born in the form
> "YYYYMMDD". Now I want a method to select every member who has birthday from
> today and up to 30 days into the future. I would prefer if this could be
> done in a MYSQL query.

You mean it is stored as a string (or integer)? Store it as a proper date.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 3 days, 2:24.]

A New Look for TobyInkster.co.uk
http://tobyinkster.co.uk/blog/2007/06/22/new-look/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация